예제 #1
0
        protected override void OnRespondCard(Card card)
        {
            if(card.Owner != RequestedPlayer)
                throw new BadCardException();

            card.AssertInHand();

            Game.GameTable.PlayerDiscardCard(card);

            if(RequestedPlayer.Hand.Count <= RequestedPlayer.MaxCardCount)
                End();
        }
예제 #2
0
            protected override void OnRespondCard(Card card)
            {
                if(card.Owner != RequestedPlayer)
                    throw new BadCardException();
                card.AssertInHand();
                if(card.Type != CardType.Beer)
                    throw new BadCardException();

                card.Play();
                End();
            }