Ejemplo n.º 1
0
        /// <summary>
        /// Performing this action allows you to return a blue counter to the tin lid.
        /// The player discards a card from their hand, face-up, on to a discard pile (next to the tin).
        /// They then draw a new card, without looking at it, and add it to their hand.
        /// </summary>
        /// <param name="card"></param>
        public void DiscardCard(CardInHand card)
        {
            if (card == null)
            {
                throw new ArgumentNullException(nameof(card));
            }
            if (card.Player != this)
            {
                throw new IncorrectDiscardActionException();
            }

            _memory.Remove(card);
            _game.AddCardToDiscardPile(this, card.Card);
        }