antichess.ai
Class AIMove<M extends Move>

java.lang.Object
  extended by 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

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)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

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.