Пример #1
0
 public void placeCard_hand_p1(Card card) {
   card.isInHand(true);
   p1_hand_.add(card);
 }
Пример #2
0
 public void placeCard_hand(int playerIndex, Card card) throws HSInvalidPlayerIndexException {
   card.isInHand(true);
   if (playerIndex == 0) p0_hand_.add(card);
   else if (playerIndex == 1) p1_hand_.add(card);
   else throw new HSInvalidPlayerIndexException();
 }