Index

B C D E G H I M N P T 
All Classes and Interfaces|All Packages|Constant Field Values

B

BOARD_SIZE - Static variable in class games.dummy.DummyState
The size of the game board.

C

ConsoleGame - Class in games.dummy
Conducts the dummy game on the console.
ConsoleGame - Class in games.nim
Conducts a nim game on the console.
ConsoleGame() - Constructor for class games.dummy.ConsoleGame
 
ConsoleGame() - Constructor for class games.nim.ConsoleGame
 
copy() - Method in class games.dummy.DummyState
 
copy() - Method in class games.nim.NimState
 
copy() - Method in class puzzles.jugs.ThreeJugsState
 

D

DummyState - Class in games.dummy
Represents the states of a dummy two-player game that was created purely for demonstration purposes.
DummyState() - Constructor for class games.dummy.DummyState
Creates a DummyState object representing the initial state of the game.
DummyState(DummyState) - Constructor for class games.dummy.DummyState
Creates a deep copy of the specified DummyState object.

E

equals(Object) - Method in class puzzles.jugs.ThreeJugsState
 

G

games.dummy - package games.dummy
Implements a dummy game.
games.nim - package games.nim
Implements the nim variant know as the subtraction game.
getLegalMoves() - Method in class games.dummy.DummyState
 
getLegalMoves() - Method in class games.nim.NimState
 
getLegalMoves() - Method in class puzzles.jugs.ThreeJugsState
Returns the set of all moves that can be applied to the state.
getNextPlayer() - Method in class games.dummy.DummyState
Returns the player who moves next.
getNextPlayer() - Method in class games.nim.NimState
Returns the player who moves next.
getStatus() - Method in class games.dummy.DummyState
Returns the status of the game.
getStatus() - Method in class games.nim.NimState
Returns the status of the game.

H

hashCode() - Method in class puzzles.jugs.ThreeJugsState
 

I

isGameOver() - Method in class games.dummy.DummyState
Returns whether the game is over.
isGameOver() - Method in class games.nim.NimState
Returns whether the game is over.
isLegalMove(TwoPhaseMoveState.TwoPhaseMove) - Method in class games.dummy.DummyState
Returns whether it is possible to move a coin from the source position specified to the target position specified.
isLegalMove(TwoPhaseMoveState.TwoPhaseMove) - Method in class puzzles.jugs.ThreeJugsState
Returns whether it is possible to pour a source jug into a target jug.
isLegalMove(Integer) - Method in class games.nim.NimState
Returns whether it is allowed to remove the specified number of objects.
isLegalToMoveFrom(Position) - Method in class games.dummy.DummyState
Returns whether it is possible to move a coin from the source position specified.
isLegalToMoveFrom(Integer) - Method in class puzzles.jugs.ThreeJugsState
Returns whether is it possible to pour the source jug specified into any of the other jugs, i.e., whether the source jug is non-empty.
isSolved() - Method in class puzzles.jugs.ThreeJugsState
Returns whether the puzzle is solved.

M

makeMove(TwoPhaseMoveState.TwoPhaseMove) - Method in class games.dummy.DummyState
Moves a coin from the source position specified to the empty target position specified.
makeMove(TwoPhaseMoveState.TwoPhaseMove) - Method in class puzzles.jugs.ThreeJugsState
Pours the source jug specified into the target jug specified.
makeMove(Integer) - Method in class games.nim.NimState
Removes the specified number of objects.

N

NimState - Class in games.nim
Represents the states of the Nim variant called the subtraction game.
NimState(int, int) - Constructor for class games.nim.NimState
Creates a NimState instance with the specified number of objects.
NimState(NimState) - Constructor for class games.nim.NimState
Creates a deep copy of the specified NimState object.

P

parseMove(String) - Static method in class games.dummy.ConsoleGame
Converts a string containing the position of a move to a Position object.
puzzles.jugs - package puzzles.jugs
Implements the three jugs puzzle.

T

ThreeJugsState - Class in puzzles.jugs
Represents the states of the three jugs problem, also known as a water pouring puzzle.
ThreeJugsState() - Constructor for class puzzles.jugs.ThreeJugsState
Creates a ThreeJugsState instance representing the initial state of the puzzle.
ThreeJugsState(ThreeJugsState) - Constructor for class puzzles.jugs.ThreeJugsState
Creates a deep copy of the specified ThreeJugsState object.
toString() - Method in class games.dummy.DummyState
 
toString() - Method in class games.nim.NimState
 
toString() - Method in class puzzles.jugs.ThreeJugsState
 
B C D E G H I M N P T 
All Classes and Interfaces|All Packages|Constant Field Values