示例#1
0
文件: Game.cs 项目: Bump-s/BlackJack
        private Player FirstHand(String name, Deck deck)
        {
            var player = new Player(name);

            while (player.Hand.Count - 1 < 1)
            {
                player.AddCard(deck.GetCard());
                player.CountValue();
                Console.WriteLine($"{player.Name} got a {player.Hand[player.Hand.Count - 1].Value} of {player.Hand[player.Hand.Count - 1].Suit}");
            }
            return(player);
        }
示例#2
0
文件: Game.cs 项目: Bump-s/BlackJack
 private void PlayerGetCard(Player player, Deck deck)
 {
     player.AddCard(deck.GetCard());
     player.CountValue();
     Console.WriteLine($"{player.Name} got a {player.Hand[player.Hand.Count - 1].Value} of {player.Hand[player.Hand.Count - 1].Suit}");
 }