Пример #1
0
 internal void GotABlackJack(Gambler player, Gambler diller)
 {
     if (IsAceOnHend(player.playerCards) & IsFigureOnHend(player.playerCards))
     {
         MoneyService.BlackJackWinnings(player);
         GameProvider.NewGameSelector(player, diller);
     }
 }
Пример #2
0
        private void CheckAllConditions(Gambler player, Gambler diller)
        {
            if (player.PlayerPoint > diller.PlayerPoint & !player.IsLoose)
            {
                Console.WriteLine($"{player.Name} Victory!!!");
                MoneyService.ClasicWinnings(player);
                GameProvider.NewGameSelector(player, diller);
                return;
            }

            DillerVictory(player, diller);
        }
Пример #3
0
        private void DillerVictory(Gambler player, Gambler diller)
        {
            if (!diller.IsLoose)
            {
                Console.WriteLine($"{player.Name} Bust! The game is over");
                GameProvider.NewGameSelector(player, diller);
                return;
            }

            Console.WriteLine($"{diller.Name} Bust! The game is over");
            MoneyService.ClasicWinnings(player);
            GameProvider.NewGameSelector(player, diller);
        }