AIMA.Core.Search.Adversarial.Game.makeMiniMaxMove C# (CSharp) Method

makeMiniMaxMove() public method

public makeMiniMaxMove ( ) : void
return void
        public void makeMiniMaxMove()
        {
            getMiniMaxValue(presentState);
            GameState nextState = (GameState)presentState.get("next");
            if (nextState == null)
            {
                throw new RuntimeException("Mini Max Move failed");

            }
            makeMove(presentState, nextState.get("moveMade"));

        }

Usage Example

Example #1
0
 public void makeMiniMaxMove()
 {
     game.makeMiniMaxMove();
 }