JavaScript is disabled on your browser.
Skip navigation links
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes
A
B
G
J
M
N
R
S
T
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()
).
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.
T
toString()
- Method in class
AtaxxState
Return a String representation of the AtaxxState, built with a StringBuilder.
A
B
G
J
M
N
R
S
T
Skip navigation links
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes