Skip navigation links
C E G H I L M N P R S T U 

C

childClone() - Method in class GameNode
childClone - returns a clone of this node that has been made a child of this node and has a depth one greater than this.
chooseMove(MancalaNode, long) - Method in class HumanMancalaPlayer
Display remaining time, legal moves and query user until legal move is entered.
chooseMove(MancalaNode, long) - Method in interface MancalaPlayer
chooseMove - This is where your code takes over as a MancalaPlayer.
chooseMove(MancalaNode, long) - Method in class SimpleMancalaPlayer
Choose a move for the given game situation given play time remaining.
clone() - Method in class GameNode
clone - deep copy of game node; This will generally need to be overridden.
clone() - Method in class MancalaNode
clone - return a deep clone of the MancalaNode.

E

eval(GameNode) - Method in interface GameTreeSearcher
eval - Returns the estimated minimax value of the given node.
eval(GameNode) - Method in class MinimaxSearcher
eval - return the depth-limited minimax value of the given node
expand() - Method in class GameNode
expand - return an ArrayList of all possible next game states
expand() - Method in class MancalaNode
expand - return an ArrayList of all possible next game states

G

GameNode - Class in <Unnamed>
A general representation for a discrete game node.
GameNode() - Constructor for class GameNode
 
gameOver() - Method in class GameNode
Return result of terminal state test.
gameOver() - Method in class MancalaNode
gameOver - return true if no pieces left in play pits.
GameTreeSearcher - Interface in <Unnamed>
GameTreeSearcher.java - a simple interface for a game-tree search class
getBestMove() - Method in interface GameTreeSearcher
getBestMove - Returns the best move for the node most recently evaluated.
getBestMove() - Method in class MinimaxSearcher
getBestMove - Return the best move for the node most recently evaluated.
getLegalMoves() - Method in class MancalaNode
Return an ArrayList of integers, each designating a legal pit index to play from.
getNodeCount() - Method in interface GameTreeSearcher
getNodeCount - Returns the number of nodes searched for the previous node evaluation
getNodeCount() - Method in class MinimaxSearcher
getNodeCount - returns the number of nodes searched for the previous node evaluation
getPlayer() - Method in class GameNode
getPlayer - return the current player (GameNode.MAX or GameNode.MIN).

H

HumanMancalaPlayer - Class in <Unnamed>
HumanMancalaPlayer - an agent relying entirely upon human intelligence for decision making through a simple text
HumanMancalaPlayer() - Constructor for class HumanMancalaPlayer
 

I

INIT_PIECES_PER_PIT - Static variable in class MancalaNode
Initial pieces per pit for standard Mancala play.

L

lap() - Method in class Stopwatch
Return millisecond stopwatch time elapsed so far.

M

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.

N

NUM_PIECES - Static variable in class MancalaNode
 

P

parent - Variable in class GameNode
variable parent - parent of this game node
piecesRemaining(MancalaNode) - Method in class SimpleMancalaPlayer
Returns the number of pieces not yet captured.
PLAY_PITS - Static variable in class MancalaNode
Total number of play pits per player
player - Variable in class GameNode
first player MAXimizer by default
prevMove - Variable in class GameNode
previous move applied to reach this node.

R

reset() - Method in class Stopwatch
Reset the millisecond stopwatch.

S

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
 

T

toString() - Method in class MancalaNode
String representation of current game state.
TOTAL_PITS - Static variable in class MancalaNode
Total number of play and score pits.

U

UNDEFINED_MOVE - Static variable in class GameNode
undefined move constant
utility() - Method in class GameNode
Return the estimated utility of the current game position, unless game is over.
utility() - Method in class MancalaNode
Return an estimation of game node utility, unless game is over.
utility() - Method in class ScoreDiffMancalaNode
Return the difference between current MAX and MIN score.
C E G H I L M N P R S T U 
Skip navigation links