Class MinimaxLeaf
- java.lang.Object
-
- org.swtpra1.relativeterritoryplayer.MinimaxComponent
-
- org.swtpra1.relativeterritoryplayer.MinimaxLeaf
-
@Deprecated public class MinimaxLeaf extends MinimaxComponent
Deprecated.Only used for benchmarkingA leaf of the created tree.
-
-
Constructor Summary
Constructors Constructor Description MinimaxLeaf(Turn turn, Board board)
Deprecated.MinimaxLeaf of tree, its evaluation is the board value based on RTH.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<MinimaxComponent>
getChildren()
Deprecated.Gets all children.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
-
isLeaf
public boolean isLeaf()
Deprecated.Returns whether the node is a leaf.- Specified by:
isLeaf
in classMinimaxComponent
- Returns:
- Always true.
-
getChildren
public java.util.List<MinimaxComponent> getChildren()
Deprecated.Gets all children.- Specified by:
getChildren
in classMinimaxComponent
- Returns:
- A list of the children.
-
-