コード例 #1
0
        public PokerAi(PokerGame game)
        {
            _pokerGame      = game;
            _player         = game.Players[1]; // AI is always player 1
            _settings       = game.Settings;
            _actions        = GetActions(game);
            _dataController = new DataController(game.Settings.PlayerName);
            _round          = game.CurrentRound();
            _street         = game.Hand.Street.ToList();
            _hand           = game.Hand;

            if (game.Settings.EvaluationStyle == AiMode.MonteCarlo)
            {
                _monteCarloDecisionMaking = new MonteCarloDecisionMaking(_pokerGame);
            }
            else
            {
                _expectiMaxDecisionMaking = new ExpectiMaxDecisionMaking(_dataController.PlayerData);
            }
        }