public int getNumTrump(int trumpsuit, int trumpnumber) { int trump = 0; for (Card card : this.cards) { if (card.getSuit() == trumpsuit || card.getSuit() == Card.TRUMP || card.getNumber() == trumpnumber) trump++; } return trump; }
public int getNumSuit(int suit, int trumpnumber) { int numsuit = 0; for (Card card : this.cards) { if (card.getSuit() == suit && card.getNumber() != trumpnumber) numsuit++; } return numsuit; }