Skip navigation links
A B C G J M N R S 

A

AtaxxGame - Class in <Unnamed>
 
AtaxxGame() - Constructor for class AtaxxGame
 
AtaxxState - Class in <Unnamed>
AtaxxState - a model of a state of the game Ataxx.
AtaxxState() - Constructor for class AtaxxState
Initialize board with RED pieces at [0][SIZE-1] and [SIZE-1][0] and BLUE pieces at [0][0] and [SIZE-1][SIZE-1].

B

BLUE - Static variable in class AtaxxState
A constant integer value representing "blue piece" (in getPiece(int, int)) and "blue player winner" (in getWinner()).

C

clone() - Method in class AtaxxState
Return a deep clone of AtaxxState such that changes to a clone state do not affect the original or vice versa.

G

getCurrentPlayer() - Method in class AtaxxState
Return the current player (BLUE/RED).
getPiece(int, int) - Method in class AtaxxState
Return the piece (NONE/BLUE/RED) at the given 0-based row and column.
getWinner() - Method in class AtaxxState
Return the winner (BLUE/RED) of the game or NONE if there is no winner.
grow(int, int) - Method in class AtaxxState
Grow into a given 0-based position if and only if it is legal and return whether or not the growth was legal.

J

jump(int, int, int, int) - Method in class AtaxxState
Jump between two given 0-based positions if and only if it is legal and return whether or not the jump was legal.

M

main(String[]) - Static method in class AtaxxGame
Provide a text-based interface for playing the game of Ataxx making use of the AtaxxState class.

N

NONE - Static variable in class AtaxxState
A constant integer value representing "no piece" (in getPiece(int, int)) and "no winner" (in getWinner()).

R

RED - Static variable in class AtaxxState
A constant integer value representing "red piece" (in getPiece(int, int)) and "red player winner" (in getWinner()).

S

SIZE - Static variable in class AtaxxState
The size of the 7-by-7 square grid.
stateToString(AtaxxState) - Static method in class AtaxxGame
Given a AtaxxState object, return the String that represents the current game state.
A B C G J M N R S 
Skip navigation links