public class AStarPlayer extends Player
Player.boardType, Player.playerType
Constructor and Description |
---|
AStarPlayer(GameSpecification specs,
Heuristic heuristic)
construct a new A* player for the specified game with the given heuristic
|
Modifier and Type | Method and Description |
---|---|
Move |
move(GameState state,
java.util.ArrayList<Move> allowedMoves)
A* player makes a move - it searches all the way to find the closest winning state and performs a move that is leading towards it.
|
isComputer, otherMoved, ratioTimeLeft, setMaximumNumberOfNodes, setMaxTime, setPlayerNumber, startMove, timeUsed
public AStarPlayer(GameSpecification specs, Heuristic heuristic)