HandIsClosed() private method

private HandIsClosed ( Hand hand ) : void
hand Hand
return void
Example #1
0
        internal void PlayerPlayedCard(Player player, Card playedCard)
        {
            _playingManager.Add(player, playedCard);

            player.Cards.Remove(playedCard);

            foreach (Card card in player.Cards)
            {
                card.IsSelectable = false;
            }

            if (_playingManager.IsHandClosed)
            {
                Hand lastHand = _playingManager.GetLastHand();
                CalculatePoints(lastHand);
                _game.HandIsClosed(lastHand);
                NextHand();
            }
            else
            {
                PlayerHasTurn(_game.GetNextPlayer(player));
            }
        }