public class ScoreDiffMancalaNode extends MancalaNode
INIT_PIECES_PER_PIT, MAX_SCORE_PIT, MIN_SCORE_PIT, NUM_PIECES, PLAY_PITS, state, TOTAL_PITS
Constructor and Description |
---|
ScoreDiffMancalaNode()
See corresponding
MancalaNode standard constructor documentation. |
ScoreDiffMancalaNode(int stateIndex)
See corresponding
MancalaNode FairKalah constructor documentation. |
ScoreDiffMancalaNode(MancalaNode node)
See corresponding
MancalaNode copy constructor documentation. |
Modifier and Type | Method and Description |
---|---|
double |
utility()
Return the difference between current MAX and MIN score.
|
clone, expand, gameOver, getLegalMoves, makeMove, moveToString, toString
childClone, getPlayer
public ScoreDiffMancalaNode()
MancalaNode
standard constructor documentation.public ScoreDiffMancalaNode(MancalaNode node)
MancalaNode
copy constructor documentation.node
- node to be copiedpublic ScoreDiffMancalaNode(int stateIndex)
MancalaNode
FairKalah constructor documentation.stateIndex
- FairKalah initial state indexpublic double utility()
utility
in class MancalaNode