Skip navigation links
C G I M T 

C

checkIfChomped(int, int) - Method in class ChompGame
Return whether or not the board has been chomped at 0-based index position [row][col].
Chomp - Class in <Unnamed>
Chomp - A class for text-based play of the game of Chomp as specified through the given game transcript.
Chomp() - Constructor for class Chomp
 
chompAt(int, int) - Method in class ChompGame
If a chomp at [row][col] is legal, then (1) chomp all positions in the rectangle of positions with [row][col] being the upper-left-most and [rows-1][cols-1] being the lower-right-most, (2) change the current player from 1 to 2 or vice versa, and (3) return true.
ChompGame - Class in <Unnamed>
ChompGame - A class for modeling the game of Chomp.
ChompGame(int, int) - Constructor for class ChompGame
Create an initial board with the given number of rows and columns with all positions unchomped.

G

getCols() - Method in class ChompGame
Get the number of columns in the board.
getCurrentPlayer() - Method in class ChompGame
Return the current player number, initially 1 and alternating between 1 and 2 with each successive legal play.
getRows() - Method in class ChompGame
Get the number of rows in the board.

I

isGameOver() - Method in class ChompGame
Return whether or not the game is over, that is, whether or not position [0][0] has been chomped.
isLegalChomp(int, int) - Method in class ChompGame
Return whether or not a chomp at [row][col] would be a legal chomp, that is, would be both in bounds and not previously chomped.

M

main(String[]) - Static method in class Chomp
 

T

toString() - Method in class ChompGame
Return the String representation of the board, such that each line is terminated with a newline, the first line consists of a space and the digits 0 through (cols-1) and following lines consist of the row index digit followed by asterisks/spaces representing unchomped/chomped positions, respectively.
C G I M T 
Skip navigation links