Class MinimaxNode
- java.lang.Object
-
- org.swtpra1.relativeterritoryplayer.MinimaxComponent
-
- org.swtpra1.relativeterritoryplayer.MinimaxNode
-
@Deprecated public class MinimaxNode extends MinimaxComponent
Deprecated.Only used for benchmarkingA node of the created tree.
-
-
Constructor Summary
Constructors Constructor Description MinimaxNode(Turn turn, Board board)
Deprecated.MinimaxNode which contains a turn and the resulting board after turn was executed.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addChild(MinimaxComponent component)
Deprecated.Adds a child minimaxComponent to children.java.util.List<MinimaxComponent>
getChildren()
Deprecated.Gets all children of minimaxNode.boolean
isLeaf()
Deprecated.Returns whether the node is a leaf.-
Methods inherited from class org.swtpra1.relativeterritoryplayer.MinimaxComponent
copy2dArray, getBestTurn, getBoardValue, getEvaluation, minimax, printBoard
-
-
-
-
Method Detail
-
addChild
public void addChild(MinimaxComponent component)
Deprecated.Adds a child minimaxComponent to children.- Parameters:
component
- The child to be added.
-
isLeaf
public boolean isLeaf()
Deprecated.Returns whether the node is a leaf.- Specified by:
isLeaf
in classMinimaxComponent
- Returns:
- Always false.
-
getChildren
public java.util.List<MinimaxComponent> getChildren()
Deprecated.Gets all children of minimaxNode.- Specified by:
getChildren
in classMinimaxComponent
- Returns:
- A list of the children.
-
-