Example #1
0
        void StartCircle()
        {
            PlayerServ.AddCard(player, ShoesServ.GetNextCard(shoes));
            PlayerServ.AddCard(dealer, ShoesServ.GetNextCard(shoes));

            while (true)
            {
                ConsoleCommand.GameStats(player, dealer, shoes, gameNumber);

                if (ConsoleCommand.NextCard())
                {
                    PlayerServ.AddCard(player, ShoesServ.GetNextCard(shoes));
                    continue;
                }
                break;
            }

            PlayerServ.AddCard(dealer, ShoesServ.GetNextCard(shoes));
            ConsoleCommand.GameStats(player, dealer, shoes, gameNumber);

            WhosWin(player, dealer);

            PlayerServ.ClearCards(player);
            PlayerServ.ClearCards(dealer);
        }