Beispiel #1
0
        private void startNewHand(HoleCards heroHoleCards, int handNumber)
        {
            foreach (var player in _botGameState.getPlayers())
            {
                player.SetStackSize(_startStackSize);
            }

            var startTime = DateTime.Now;

            _botGameState.startNewHand();
            var timeStr = timeToString(DateTime.Now - startTime);

            Console.WriteLine("");
            Console.WriteLine("Started new (" + handNumber + ") hand " + timeStr);
            Console.WriteLine("Players are reverted to start stack size and are posting blinds");

            foreach (var player in _botGameState.getPlayers())
            {
                Console.WriteLine(player.Name + " (" + player.PreFlopPosition + ") stack: " + player.Stack.ToString());
            }

            _botGameState.dealHoleCards(heroHoleCards);
            Console.WriteLine("Dealing hole cards: " + heroHoleCards.ToString());
        }