Beispiel #1
0
 public void PlayCardFromHand(Card card)
 {
     if (Hand.Contains(card))
     {
         InPlay.Add(card);
         Hand.Remove(card);
     }
 }
Beispiel #2
0
        public void PutCardFromHandIntoPlay(Card card)
        {
            if (!Hand.Contains(card))
            {
                throw new ArgumentOutOfRangeException("Hand does not contain the card " + card);
            }

            Hand.Remove(card);
            _cardsInPlay.Add(card, this);
        }