Exemple #1
0
 public static bool CheckBust(Player player, BlackjackEngine engine)
 {
     //pass in the payer to get the new total
     engine.GetPlayerTotal(player);
     if (player.IsBusted())
     {
         DisplayBust(player);
     }
     return(player.IsBusted());
 }
Exemple #2
0
 public static void DisplayNewTotal(Player player, BlackjackEngine engine)
 {
     engine.GetPlayerTotal(player);
     Console.WriteLine("{0} 's  total is {1}", player.Name, player.Total.ToString());
 }