Exemple #1
0
        private PlayerCard AddCardToPlayer(GamePlayer gamePlayer, List <Card> deck)
        {
            Card       card       = TakeCardFromDeck(deck);
            PlayerCard playerCard = CustomMapper.GetPlayerCard(gamePlayer, card);

            gamePlayer.PlayerCards.Add(playerCard);
            gamePlayer.CardAmount++;
            gamePlayer.RoundScore = CountCardScore(gamePlayer.PlayerCards);
            return(playerCard);
        }