- 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 Summary
Constructors
-
Method Summary
Search the best next move, within time limit.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
nextMove
Search the best next move, within time limit.
Returns: the best move if found one.
- Specified by:
nextMove
in interface Player