Ejemplo n.º 1
0
 //Asks each player if they want to hit or stand.
 private void AskPlayersHitOrStand()
 {
     for (int i = 1; i < Table.Length; i++)
     {
         Player player = Table[i];
         if (player.HasBlackJackOnDeal())
         {
             player.PlayerBet.BlackJackPayout();
             Console.WriteLine($"{player.PlayerName} has a natural blackjack!  Payout = {(player.PlayerBet.BetAmount / 2) * 3}");
             Console.WriteLine("Press enter to continue.");
             Console.ReadLine();
         }
         else
         {
             while (player.PlayerWantsHit())
             {
                 player.Hit(MainDeck.GetFreshCard());
                 this.RefreshDisplay(false);
             }
         }
         AdvanceCurrentPlayer();
         this.RefreshDisplay(false);
     }
 }