Package a5.ui

Class AIPlayer<GameState>

java.lang.Object
a5.ui.AIPlayer<GameState>
Type Parameters:
GameState - the type of game this player plays
All Implemented Interfaces:
Player

public class AIPlayer<GameState> extends Object implements Player
A computer-driven player that uses minimax search to find good moves.
  • Constructor Details

    • AIPlayer

      public AIPlayer(GameState state, GameModel<GameState,Position> model, boolean useAlphaBetaPruning, boolean useTranspositionTable, boolean enableShowInfo, int timeLimit)
  • Method Details

    • nextMove

      public Maybe<Position> nextMove()
      Search the best next move, within time limit. Returns: the best move if found one.
      Specified by:
      nextMove in interface Player