C E G H I L M 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 TnellerMancalaPlayer
Choose a move for the given game situation given play time remaining.
clone() - Method in class GameNode
clone - see Main (pp.
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 a Vector of all possible next game states

G

GameNode - class GameNode.
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 GameTreeSearcher.
GameTreeSearcher.java - a simple interface for a game-tree search class Created: Wed Oct 16 16:44:00 2002
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 GameNode
Return an array of integers encoding legal moves for current state.
getLegalMoves() - Method in class MancalaNode
Return an array of legal mancala moves.
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 HumanMancalaPlayer.
HumanMancalaPlayer - an agent relying entirely upon human intelligence for decision making through a simple text
HumanMancalaPlayer() - Constructor for class HumanMancalaPlayer
HumanMancalaPlayer constructor.

I

initialState() - Method in class GameNode
Set game to initial state.
initialState() - Method in class MancalaNode
Set initial Mancala state.

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
makeMove(int) - Method in class GameNode
Assuming move is a legal move (see legalMoves()), make the appropriate change to the game state and update the player.
makeMove(int) - Method in class MancalaNode
Make the designated move, redistributing pieces from the indicated position and updating player accordingly.
Mancala - class Mancala.
Mancala - Timed mancala game manager.
Mancala() - Constructor for class Mancala
 
MancalaNode - class MancalaNode.
MancalaNode - a mancala game node
MancalaNode() - Constructor for class MancalaNode
 
MancalaPlayer - interface MancalaPlayer.
 
minimaxEval(GameNode, int) - Method in class MinimaxSearcher
maximize - MAX node evaluation of minimax procedure.
MinimaxSearcher - class MinimaxSearcher.
MinimaxSearcher.java - a depth-limited minimax searcher without alpha-beta pruning Created: Wed Oct 16 16:15:26 2002
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.

P

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

R

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

S

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: f e d c b a g G A B C D E F where A-F are the first player's (MAX's) pits, G is the first player's (MAX's) scoring pit, a-f are the second player's (MIN's) pits, and g is the second player's (MIN's) scoring pit.
stop() - Method in class Stopwatch
Stop millisecond stopwatch and return total time elapsed.
Stopwatch - class Stopwatch.
A simple millisecond stopwatch.
Stopwatch() - Constructor for class Stopwatch
 

T

TnellerMancalaNode - class TnellerMancalaNode.
My simple extension of MancalaNode with a simple utility evaluation.
TnellerMancalaNode() - Constructor for class TnellerMancalaNode
TnellerMancalaNode constructor.
TnellerMancalaNode(MancalaNode) - Constructor for class TnellerMancalaNode
 
TnellerMancalaPlayer - class TnellerMancalaPlayer.
TnellerMancalaPlayer - My simple implementation of a mancala player with a simple, messy hack for distributing game-play.
TnellerMancalaPlayer() - Constructor for class TnellerMancalaPlayer
 
toString() - Method in class MancalaNode
String representation of current game state.

U

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 TnellerMancalaNode
My simple utility method returns different in MAX/MIN score.

C E G H I L M P R S T U