Package net.sf.colossus.client
Class PredictSplits
java.lang.Object
net.sf.colossus.client.PredictSplits
Predicts splits for one enemy player, and adjusts predictions as
creatures are revealed.
- Author:
- David Ripton See docs/SplitPrediction.txt
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Logger
private final NodeTurnComparator
private final PredictSplitNode
-
Constructor Summary
ConstructorsConstructorDescriptionPredictSplits
(String rootId, List<CreatureType> creatureTypes, Variant variant) -
Method Summary
Modifier and TypeMethodDescription(package private) PredictSplitNode
Return the leaf PredictSplitNode with matching markerId.(package private) List
<PredictSplitNode> getLeaves
(PredictSplitNode node) Return all non-empty childless nodes in subtree starting from node.(package private) List
<PredictSplitNode> getNodes
(PredictSplitNode node) Return all non-empty nodes in subtree starting from node.getRoot()
(package private) void
Print all childless nodes in tree.(package private) void
Print all nodes in tree.
-
Field Details
-
LOGGER
-
root
-
nodeTurnComparator
-
-
Constructor Details
-
PredictSplits
PredictSplits(String rootId, List<CreatureType> creatureTypes, Variant variant)
-
-
Method Details
-
getLeaves
Return all non-empty childless nodes in subtree starting from node. -
getNodes
Return all non-empty nodes in subtree starting from node. -
printLeaves
void printLeaves()Print all childless nodes in tree. -
printNodes
void printNodes()Print all nodes in tree. -
getLeaf
Return the leaf PredictSplitNode with matching markerId. -
getRoot
-