antichess.ai
Class AIMove<M extends Move>
java.lang.Object
antichess.ai.AIMove<M>
public class AIMove<M extends Move>
- extends Object
An AIMove
represents a line of moves found by the AI
while searching the game tree from a given node.
- Specification Fields
-
-
move
: Move // The actual first move in the sequence
-
value
: int // The heuristic value of this chain of moves
-
line
: AIMove // The rest of the chain of moves, or null if this is the last
Field Summary |
AIMove<M> |
line
line is used to store a linked list of the
principal variation discovered by minimax |
M |
move
The game move represented by this AIMove |
int |
value
The value of that move to the player making it |
Constructor Summary |
AIMove(M m,
int v)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
move
public M extends Move move
- The game move represented by this AIMove
value
public int value
- The value of that move to the player making it
line
public AIMove<M extends Move> line
line
is used to store a linked list of the
principal variation discovered by minimax
AIMove
public AIMove(M m,
int v)
- Effects:
- Construct a new AIMove with the given move and value
that is the last in its line.