- main(String[]) - Static method in class Mancala
-
main
- manage a timed Mancala game
- main(String[]) - Static method in class MancalaTournament
-
Run a round-robin Mancala tournament with given hard-coded parameters noted with "TODO" comments.
- makeMove(int) - Method in class MancalaNode
-
Make the designated move, redistributing pieces from the indicated position and
updating player accordingly.
- Mancala - Class in <Unnamed>
-
Mancala - Timed mancala game manager.
- Mancala() - Constructor for class Mancala
-
- MancalaNode - Class in <Unnamed>
-
MancalaNode - a Mancala game node.
- MancalaNode() - Constructor for class MancalaNode
-
Create a standard Mancala (a.k.a.
- MancalaNode(int[]) - Constructor for class MancalaNode
-
Initialize Mancala node with given state piece distribution with MAX to play.
- MancalaNode(int) - Constructor for class MancalaNode
-
Create an initial FairKalah (fair Mancala) state where two perfect players
will draw.
- MancalaNode(MancalaNode) - Constructor for class MancalaNode
-
Mancala copy constructor.
- MancalaPlayer - Interface in <Unnamed>
-
Interface for a MancalaPlayer object that, given a MancalaNode
and milliseconds remaining in the game, returns a legal move
integer.
- MancalaTournament - Class in <Unnamed>
-
Tournament.java - Simple Mancala tournament software
See the TODO comments below.
- MancalaTournament() - Constructor for class MancalaTournament
-
- MAX - Static variable in class GameNode
-
constant integers designating player MAXimizing and MINimizing utility
- MAX_SCORE_PIT - Static variable in class MancalaNode
-
Score pit index for maximizing player.
- MIN - Static variable in class GameNode
-
constant integers designating player MAXimizing and MINimizing utility
- MIN_SCORE_PIT - Static variable in class MancalaNode
-
Score pit index for minimizing player.
- minimaxEval(GameNode, int) - Method in class MinimaxSearcher
-
maximize
- MAX node evaluation of minimax
procedure.
- MinimaxSearcher - Class in <Unnamed>
-
MinimaxSearcher.java - a depth-limited minimax searcher
without alpha-beta pruning
- MinimaxSearcher(int) - Constructor for class MinimaxSearcher
-
Creates a new MinimaxSearcher
instance with
the given depth limit.
- moveToString(int) - Static method in class MancalaNode
-
Translates move integer to a String.
- scanner - Static variable in class HumanMancalaPlayer
-
Scanner for reading human input.
- ScoreDiffMancalaNode - Class in <Unnamed>
-
An extension of MancalaNode with a simple, score-difference utility evaluation function.
- ScoreDiffMancalaNode() - Constructor for class ScoreDiffMancalaNode
-
See corresponding MancalaNode
standard constructor documentation.
- ScoreDiffMancalaNode(MancalaNode) - Constructor for class ScoreDiffMancalaNode
-
See corresponding MancalaNode
copy constructor documentation.
- ScoreDiffMancalaNode(int) - Constructor for class ScoreDiffMancalaNode
-
See corresponding MancalaNode
FairKalah constructor documentation.
- SimpleMancalaPlayer - Class in <Unnamed>
-
SimpleMancalaPlayer - A simple example implementation of a Mancala
player with simple, poor time management.
- SimpleMancalaPlayer() - Constructor for class SimpleMancalaPlayer
-
- start() - Method in class Stopwatch
-
Start millisecond stopwatch.
- state - Variable in class MancalaNode
-
How to interpret the Mancala state variable:
Let the mancala pits be notated thus:
_ _ _ _ _ _
_ 1 2 3 4 5 6
s s
6 5 4 3 2 1
where
6-1 are the first player's (MAX's) pits,
s1 is the first player's (MAX's) scoring pit,
_ _
6-1 are the second player's (MIN's) pits, and
_
s is the second player's (MIN's) scoring pit.
- stop() - Method in class Stopwatch
-
Stop millisecond stopwatch and return total time elapsed.
- Stopwatch - Class in <Unnamed>
-
Stopwatch - A simple millisecond stopwatch.
- Stopwatch() - Constructor for class Stopwatch
-