Exemple #1
0
 @Override
 public boolean isInPlay(RoundState state) {
   List<Card> cards = state.getCards();
   int num = 0;
   for (Card c : cards) {
     if (c.getRank() == rank) num++;
   }
   if (num >= 3) return true;
   return false;
 }
Exemple #2
0
  @Override
  public boolean isInPlay(
      RoundState state) { // consider not removing cards for isinplay; check for Comodification
    // TODO Auto-generated method stub
    List<Card> cards = state.getCards();
    int num = 0;
    for (Card c : cards) {
      if (c.getSuit() == suit) num++;
    }

    if (num >= 5) return true;
    return false;
  }