13 package host.labyrinth;
15 import java.util.ArrayList;
Node(Node parent, int nodeDepth, int [] nodeMove, Board nodeBoard, double nodeEvaluation)
The main constructor for the Node.
This class is the representation of the games's board.
int nodeDepth
The Node's depth.
void setPath(Node path)
set path
ArrayList< Node > getChildren()
get children
void setNodeDepth(int nodeDepth)
set nodeDepth
ArrayList< Node > children
Fwd reference to leaf Nodes.
void setChildren(ArrayList< Node > children)
set children
int [] getNodeMove()
get nodeMove
void setNodeMove(int[] nodeMove)
set nodeMove
Node parent
Back reference to parent Node.
int getNodeDepth()
get nodeDepth
double getNodeEvaluation()
get nodeEvluation
Board nodeBoard
Reference to Board's copy of the current node.
Node()
Null initialize constructor.
void setNodeBoard(Board nodeBoard)
set nodeBoard
Node path
The minimax evaluation path.
void setParent(Node parent)
set parent
int [] nodeMove
The Node's move data [tile, initTile, points, roll].
void setNodeEvaluation(double nodeEvaluation)
set nodeEvaluation
Node object for minimax tree.
double nodeEvaluation
The Node's evaluation result.
boolean addChild(Node child)
Add a child to the tree.
Node getParent()
Get parent.
Board getNodeBoard()
get nodeBoard
Node(Board nodeBoard)
A special constructor for creating a root Node.