A B C D G I L M N O P R S T U

A

addPlan(Plan) - Method in class org.pesullivan.game.game42.Game
 
AXIS_A - Static variable in class org.pesullivan.game.mill.engine.MillBoard
Identifies axis A of a coordinate system that locates spots on the board.
AXIS_B - Static variable in class org.pesullivan.game.mill.engine.MillBoard
Identifies axis B of a coordinate system that locates spots on the board.

B

Board - Interface in org.pesullivan.game.game42
A game board interface that can form the basis of any deterministic 2 player strategy game middle tier.

C

canRedo() - Method in class org.pesullivan.game.game42.Game
Return true if Game.undo() was called without a matching Game.redo().
canUndo() - Method in class org.pesullivan.game.game42.Game
Return true if this is not the first turn.
copy() - Method in interface org.pesullivan.game.game42.Board
Return a copy (ignoring move iterator state).
copy() - Method in interface org.pesullivan.game.game42.Move
Return a copy of the move.
copy() - Method in class org.pesullivan.game.mill.engine.MillBoard
 
copy() - Method in class org.pesullivan.game.mill.engine.MillMove
 
cpuWon() - Method in class org.pesullivan.game.game42.Game
Return true if the CPU has won the game.
cpuWon(int) - Method in class org.pesullivan.game.game42.Game
Return true if the given score relative to the active side, is a winning score for the CPU.

D

doCommand(String) - Method in class org.pesullivan.game.mill.ui.MillApplet
Parse a text based command and if it is syntactically valid then invoke it.

G

Game - Class in org.pesullivan.game.game42
Supplies all business logic required by any deterministic 2 player strategy game that implements Board.
Game(Board) - Constructor for class org.pesullivan.game.game42.Game
Construct a Game object using Board to supply all game specific middle tier behavior.
getAbortPlanningThreadPending() - Method in class org.pesullivan.game.game42.Game
If true is returned this means that any thread running the expensive Game.getTurnMoves() will abort.
getActiveSide() - Method in interface org.pesullivan.game.game42.Board
Get an index identifying the active side (whose turn it is).
getActiveSide() - Method in class org.pesullivan.game.mill.engine.MillBoard
 
getAlteredLevelOfPlay(int) - Method in interface org.pesullivan.game.game42.Board
Return the number of turns the Game engine should look ahead.
getAlteredLevelOfPlay(int) - Method in class org.pesullivan.game.mill.engine.MillBoard
 
getAppletInfo() - Method in class org.pesullivan.game.mill.ui.MillApplet
 
GetAppletSceneParameters() - Method in class org.pesullivan.game.mill.ui.MillApplet
Return applet parameters for the current scene.
getBoard() - Method in class org.pesullivan.game.game42.Game
Return a readonly board that holds the current position.
getBoard(int) - Method in class org.pesullivan.game.game42.Game
Return a readonly board at the given historical position.
getContents() - Method in class org.pesullivan.game.mill.ui.LabelBundle_de
 
getContents() - Method in class org.pesullivan.game.mill.ui.LabelBundle_en
 
getContents() - Method in class org.pesullivan.game.mill.ui.LabelBundle_fr
 
getCPUSide() - Method in class org.pesullivan.game.game42.Game
Get the side of the board taken by the CPU.
getEmptyNeighborCount(int) - Method in class org.pesullivan.game.mill.engine.MillBoard
 
getFirstMove() - Method in interface org.pesullivan.game.game42.Board
Reset the board's move iterator and return the first move.
getFirstMove() - Method in class org.pesullivan.game.mill.engine.MillBoard
 
getGoodEnoughScore(int, int) - Method in interface org.pesullivan.game.game42.Board
Return a score which is good enough that a player need look no farther to see how much better it gets.
getGoodEnoughScore(int, int) - Method in class org.pesullivan.game.mill.engine.MillBoard
 
getLastMoveExecuted() - Method in interface org.pesullivan.game.game42.Board
Return the last move that was executed.
getLastMoveExecuted() - Method in class org.pesullivan.game.mill.engine.MillBoard
 
getLevelOfPlay() - Method in class org.pesullivan.game.game42.Game
Get the 1 based level of difficulty of play.
getMenLeft() - Method in class org.pesullivan.game.mill.engine.MillBoard
Return the number of men left to be placed by the active side.
getMenLeft(int) - Method in class org.pesullivan.game.mill.engine.MillBoard
Return the number of men left to be placed by the given side.
getMenOut(int) - Method in class org.pesullivan.game.mill.engine.MillBoard
Return the number of men taken from the given side.
getMillBoard() - Method in class org.pesullivan.game.mill.engine.MillGame
Get the MillBoard corresponding to the current position.
getMillBoard(int) - Method in class org.pesullivan.game.mill.engine.MillGame
Get the MillBoard corresponding to the given historical position.
getMove(String) - Static method in class org.pesullivan.game.mill.engine.MillBoard
Return the move described by positionText.
getMoveSpot0() - Method in class org.pesullivan.game.mill.engine.MillMove
Get the spot to place a mill stone on, or to move a mill stone from.
getMoveSpot1() - Method in class org.pesullivan.game.mill.engine.MillMove
Get the spot to slide or fly a mill stone to.
getNCurrentBoardInHistory() - Method in class org.pesullivan.game.game42.Game
Return the 0 based index of the current board in the history of positions.
getNewBoard() - Method in interface org.pesullivan.game.game42.Board
Return a new board ready for a new game.
getNewBoard() - Method in class org.pesullivan.game.mill.engine.MillBoard
 
getNextMove() - Method in interface org.pesullivan.game.game42.Board
Return the next move based on the board's move iterator.
getNextMove() - Method in class org.pesullivan.game.mill.engine.MillBoard
 
getPositionText(int) - Static method in class org.pesullivan.game.mill.engine.MillBoard
Return text notation for the given move spot.
getPredictedScoreFromCache() - Method in class org.pesullivan.game.game42.Game
Return the score predicted by any cached Plan that may exist for the current position and side.
getProgress() - Method in interface org.pesullivan.game.game42.Board
Return a measure of progress towards the game conclusion.
getProgress() - Method in class org.pesullivan.game.mill.engine.MillBoard
 
getRepetitionPenalty(int) - Method in interface org.pesullivan.game.game42.Board
Get a score penalty for repeating a position so many times.
getRepetitionPenalty(int) - Method in class org.pesullivan.game.mill.engine.MillBoard
 
getScore() - Method in interface org.pesullivan.game.game42.Board
Express the position's merits as a scalar relative score.
getScore() - Method in class org.pesullivan.game.mill.engine.MillBoard
 
getSpot(String) - Static method in class org.pesullivan.game.mill.engine.MillBoard
Get the spot indicated by the given textPosition.
getSpot(int, int) - Static method in class org.pesullivan.game.mill.engine.MillBoard
Return the intersection spot index at coordinate a,b.
getSpotCoordinate(int, int) - Static method in class org.pesullivan.game.mill.engine.MillBoard
Return an a or b cartesian coordinate for the given board spot.
getSpotCoordinate(int, int, int) - Static method in class org.pesullivan.game.mill.engine.MillBoard
Return an a or b cartesian coordinate for the given row spot.
getSpotSide(int) - Method in class org.pesullivan.game.mill.engine.MillBoard
Get the side of the piece currently occupying the given spot.
getSpotSide(String) - Method in class org.pesullivan.game.mill.engine.MillBoard
Get the side of the piece currently occupying the given spot.
getTurnMoves() - Method in class org.pesullivan.game.game42.Game
Get optimal moves for the current turn.
getTurnMoves() - Method in class org.pesullivan.game.game42.Plan
 
getTurnPlan() - Method in class org.pesullivan.game.game42.Game
Get optimal plan for the current turn.
getUndefinedMove() - Method in interface org.pesullivan.game.game42.Board
Return a new move which has not yet been defined.
getUndefinedMove() - Method in class org.pesullivan.game.mill.engine.MillBoard
 
go(Move) - Method in interface org.pesullivan.game.game42.Board
Execute the given move.
go(Move) - Method in class org.pesullivan.game.game42.Game
Execute the given move.
go(Move) - Method in class org.pesullivan.game.mill.engine.MillBoard
 

I

init() - Method in class org.pesullivan.game.mill.ui.MillApplet
 
isCPUsMove() - Method in class org.pesullivan.game.game42.Game
Return true if it's the CPU's move.
isFlying() - Method in class org.pesullivan.game.mill.engine.MillBoard
Return true if the current move is a flying move.
isGameOver() - Method in class org.pesullivan.game.mill.engine.MillBoard
Return true if the active side has no move.
isPlacing() - Method in class org.pesullivan.game.mill.engine.MillBoard
Return true if the current move is a placing move.
isSame(Board) - Method in interface org.pesullivan.game.game42.Board
Compare board states (ignoring move iterator state).
isSame(Move) - Method in interface org.pesullivan.game.game42.Move
Return true if the two moves are the same.
isSame(Board) - Method in class org.pesullivan.game.mill.engine.MillBoard
 
isSame(Move) - Method in class org.pesullivan.game.mill.engine.MillMove
 
isSame(MillMove) - Method in class org.pesullivan.game.mill.engine.MillMove
Return true if the two moves are the same.
isSliding() - Method in class org.pesullivan.game.mill.engine.MillBoard
Return true if the current move is a sliding move.
isTaking() - Method in class org.pesullivan.game.mill.engine.MillBoard
Return true if the current move is a taking move.
isTakingAny() - Method in class org.pesullivan.game.mill.engine.MillBoard
Return true if the player can take even from a mill.
isTranslating() - Method in class org.pesullivan.game.mill.engine.MillBoard
Return true if the current move is a sliding or flying move.
isValidMove(MillMove) - Method in class org.pesullivan.game.mill.engine.MillBoard
Return true if the given move is valid given the board state.
isWon(int) - Method in interface org.pesullivan.game.game42.Board
Return true if the given score means that either side won.
isWon(int) - Method in class org.pesullivan.game.mill.engine.MillBoard
 
isWon() - Method in class org.pesullivan.game.mill.engine.MillBoard
Return true if either side has won.

L

LabelBundle_de - Class in org.pesullivan.game.mill.ui
German string resources.
LabelBundle_de() - Constructor for class org.pesullivan.game.mill.ui.LabelBundle_de
 
LabelBundle_en - Class in org.pesullivan.game.mill.ui
English string resources.
LabelBundle_en() - Constructor for class org.pesullivan.game.mill.ui.LabelBundle_en
 
LabelBundle_fr - Class in org.pesullivan.game.mill.ui
French translation by Kevin Kimmell Lavigne in 2001.
LabelBundle_fr() - Constructor for class org.pesullivan.game.mill.ui.LabelBundle_fr
 

M

main(String[]) - Static method in class org.pesullivan.game.mill.engine.MillGame
 
MAX_SPOT_COORDINATE - Static variable in class org.pesullivan.game.mill.engine.MillBoard
Bounds of a square cartesian coordinate system that locates spots on the board.
MillApplet - Class in org.pesullivan.game.mill.ui
An applet based Nine Mens Morris web game UI.
MillApplet() - Constructor for class org.pesullivan.game.mill.ui.MillApplet
 
MillBoard - Class in org.pesullivan.game.mill.engine
A Nine Men's Morris implementation of Board.
MillGame - Class in org.pesullivan.game.mill.engine
A Nine Men's Morris extension to Game.
MillGame() - Constructor for class org.pesullivan.game.mill.engine.MillGame
 
MillMove - Class in org.pesullivan.game.mill.engine
A Nine Men's Morris implementation of Move.
MillMove() - Constructor for class org.pesullivan.game.mill.engine.MillMove
Construct a move with MillBoard.NO_SPOT for each move spot.
MillMove(int) - Constructor for class org.pesullivan.game.mill.engine.MillMove
Construct a move at the given moveSpot0.
MillMove(int, int) - Constructor for class org.pesullivan.game.mill.engine.MillMove
Construct a move at the given spots.
Move - Interface in org.pesullivan.game.game42
Describes a move that a player can make on a Game Board.

N

N_MAX_MEN_OUT - Static variable in class org.pesullivan.game.mill.engine.MillBoard
Maximum number of men that can be taken from one side.
N_MEN_PER_SIDE - Static variable in class org.pesullivan.game.mill.engine.MillBoard
Number of men per side.
N_ROWS - Static variable in class org.pesullivan.game.mill.engine.MillBoard
Number of Mill board row lines.
N_SPOTS - Static variable in class org.pesullivan.game.mill.engine.MillBoard
Number of Mill board row intersecions.
N_SPOTS_PER_ROW - Static variable in class org.pesullivan.game.mill.engine.MillBoard
Number of spots in a mill row.
newGame() - Method in class org.pesullivan.game.game42.Game
Begin a new game.
NO_SIDE - Static variable in class org.pesullivan.game.mill.engine.MillBoard
Value signifying the absence of a player side.
NO_SPOT - Static variable in class org.pesullivan.game.mill.engine.MillBoard
Value signifying the absence of a playing spot.

O

org.pesullivan.game.game42 - package org.pesullivan.game.game42
Provides generic classes that generate deterministic 2 player strategy game behaviour.
org.pesullivan.game.mill.engine - package org.pesullivan.game.mill.engine
Supplies business logic for playing Nine Men's Morris.
org.pesullivan.game.mill.ui - package org.pesullivan.game.mill.ui
A UI for playing Nine Men's Morris.

P

Plan - Class in org.pesullivan.game.game42
Plan holds information on optimal moves to complete a turn.
Plan(Board) - Constructor for class org.pesullivan.game.game42.Plan
 

R

redo() - Method in class org.pesullivan.game.game42.Game
Reverse the last Game.undo().
ROW_SPOT_0 - Static variable in class org.pesullivan.game.mill.engine.MillBoard
Identifies the first of 3 spots in a row.
ROW_SPOT_1 - Static variable in class org.pesullivan.game.mill.engine.MillBoard
Identifies the middle of 3 spots in a row.
ROW_SPOT_2 - Static variable in class org.pesullivan.game.mill.engine.MillBoard
Identifies the last of 3 spots in a row.

S

setAbortPlanningThreadPending(boolean) - Method in class org.pesullivan.game.game42.Game
Set a flag that the expensive Game.getTurnMoves() inspects periodically to decide whether it needs to abort.
setCPUSide(int) - Method in class org.pesullivan.game.game42.Game
Set the side of the board taken by the CPU.
setFrom(Board) - Method in interface org.pesullivan.game.game42.Board
Set the board state to that of board, (ignoring move iterator state).
setFrom(Move) - Method in interface org.pesullivan.game.game42.Move
Set this move based on the parameter.
setFrom(Board) - Method in class org.pesullivan.game.mill.engine.MillBoard
 
setFrom(Move) - Method in class org.pesullivan.game.mill.engine.MillMove
 
setFrom(MillMove) - Method in class org.pesullivan.game.mill.engine.MillMove
Set this move based on the parameter.
setFrom(int, int) - Method in class org.pesullivan.game.mill.engine.MillMove
Set this move based on the parameters.
setFrom(int[]) - Method in class org.pesullivan.game.mill.engine.MillMove
Set this move based on the parameter.
setFrom(int) - Method in class org.pesullivan.game.mill.engine.MillMove
Set moveSpot0 based on the parameter and set moveSpot1 to MillBoard.NO_SPOT.
setFromJSON(JSONObject) - Method in interface org.pesullivan.game.game42.Board
Set this board based on the parameter.
setFromJSON(JSONObject) - Method in interface org.pesullivan.game.game42.Move
Set this move based on the parameter.
setFromJSON(JSONObject) - Method in class org.pesullivan.game.mill.engine.MillBoard
 
setFromJSON(JSONObject) - Method in class org.pesullivan.game.mill.engine.MillMove
 
setFromJSONString(String) - Method in class org.pesullivan.game.game42.Game
 
setFromJSONString(String) - Method in class org.pesullivan.game.game42.Plan
 
setLevelOfPlay(int) - Method in class org.pesullivan.game.game42.Game
Set the the level of difficulty of play.
stop() - Method in class org.pesullivan.game.mill.ui.MillApplet
 

T

toJSONObject() - Method in interface org.pesullivan.game.game42.Board
 
toJSONObject() - Method in interface org.pesullivan.game.game42.Move
 
toJSONObject() - Method in class org.pesullivan.game.mill.engine.MillBoard
 
toJSONObject() - Method in class org.pesullivan.game.mill.engine.MillMove
 
toJSONString() - Method in class org.pesullivan.game.game42.Game
 
toJSONString() - Method in class org.pesullivan.game.game42.Plan
 

U

undo() - Method in class org.pesullivan.game.game42.Game
Return to the position prior to the last move.

A B C D G I L M N O P R S T U