private PlayerAction ExpectiMax() { if (_pokerGame.Hand.CurrentRoundNumber() == 1) { return(Preflop()); } else { //if(_pokerTree == null) { // PrepareNewTree(); //} if (_player.IsBigBlind) { _expectiMaxDecisionMaking.RegisterOpponentMove(_pokerGame.Players[0].PreviousAction); } else if (_player.IsSmallBlind && _pokerGame.CurrentTurnNumber() > 1) { _expectiMaxDecisionMaking.RegisterOpponentMove(_pokerGame.Players[0].PreviousAction); } return(AfterPreflop()); } }
private PlayerAction Evaluate() { if (_hands.Last().CurrentRoundNumber() == 1) { return(Preflop()); } else { if (_pokerTree == null) { PrepareNewTree(); } if (_player.IsBigBlind) { _pokerTree.RegisterOpponentMove(_pokerGame.Players[0].PreviousAction); } else if (_player.IsSmallBlind && _pokerGame.CurrentTurnNumber() != 0) { _pokerTree.RegisterOpponentMove(_pokerGame.Players[0].PreviousAction); } return(AfterPreflop()); } }