Example #1
0
 public void RunGame()
 {
     InitializeGame();
     do
     {
         foreach (var player in players)
         {
             if (player.AmountOfMonies + 50 > 1)
             {
                 int initialBet = ConsoleIO.PromptForInt("Take Initial Bet", 1, player.AmountOfMonies + 50);
                 c.TakeInitialBet(player, initialBet);
             }
         }
         Console.WriteLine("You New Round...");
         for (int i = 0; i < players.Count; i++)
         {
             if (players[i].AmountOfMonies > -51)
             {
                 currentPlayer = players[i];
                 RunTurn();
             }
         }
         c.RunHouseTurn();
     } while (!c.IsGameOver);
 }
Example #2
0
        private void RunBusterMoves(BlackJackController blackJackController)
        {
            blackJackController.StartGame <CardPlayer>();
            var player = blackJackController.Players[0];

            blackJackController.TakeInitialBet(player, 100);

            for (int i = 0; i < 30; i++)
            {
                blackJackController.HitPlayer(player);
            }
        }