Ejemplo n.º 1
0
        private void SetWinner(int seat)
        {
            ServerPlayerInfo player = involvedPlayers.Find(p => p.seat == seat);

            player.isWinner = true;
            player.money   += bank;
            Console.WriteLine($"Player {player.name} wins and takes {bank}");
            EndGame();
        }
Ejemplo n.º 2
0
 private void GiveCards(ServerPlayerInfo player)
 {
     player.card1 = _deck.GetRandomCard();
     player.card2 = _deck.GetRandomCard();
 }