Example #1
0
 public void Dispose()
 {
     if (_actionEstimator != null)
     {
         _actionEstimator.Dispose();
         _actionEstimator = null;
     }
 }
Example #2
0
        public BotGameState(string[] playerNames, int heroIndex, int buttonInd, int bigBlingSize, int startStackSize,
                            PokerClient client, TableType tableType, Estimators.IActionEstimator actionEstimator)
        {
            _actionEstimator = actionEstimator;

            _tableType     = tableType;
            _players       = new List <Player>();
            _board         = new Board();
            _heroHoleCards = new HoleCards(0);

            _bigBlingSize = bigBlingSize;
            _pokerClient  = client;
            _heroInd      = heroIndex;
            _buttonInd    = buttonInd;

            foreach (string playerName in playerNames)
            {
                _players.Add(new Player(playerName, startStackSize, null));
            }
        }