Exemple #1
0
        public decimal MoneyRates()
        {
            decimal maney = 0;

            maney += UserService.GetMoney();
            for (int i = 0; i < (BotService as BotService).BotPlayers.Count; i++)
            {
                maney += BotService.GetMoney(i);
            }
            return(maney);
        }
Exemple #2
0
 public void BotAction(ref decimal money)
 {
     for (int i = 0; i < (BotService as BotService).BotPlayers.Count; i++)
     {
         if (BotService.Next(i))
         {
             BotService.SetCard(i, DeckService.GetCard());
         }
         if (!BotService.Next(i))
         {
             GetWinner(ref money);
         }
     }
 }
Exemple #3
0
        public GameService(ReadDell _readDell, PrintDell _printDell)
        {
            readDell = _readDell;

            printDell = _printDell;

            CroupierService = new CroupierService();

            UserService = new UserPlayerService(printDell, readDell);

            printDell(Messages.MessAskBots);

            int botNumber = Convert.ToInt32(readDell());

            DeckService = new DeckService(DeckFactor);

            BotService = new BotService(botNumber);

            printDell(Messages.MessMenu);
        }