Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
B
C
D
E
G
M
P
R
T
B
Board
- class
Board
.
The Board class represents the 3 by 3 grid on which players make their marks in the game Tic Tac Toe.
Board()
- Constructor for class
Board
Constructs a 3 by 3 grid with empty cells for the playing board.
C
cellFree(Move)
- Method in class
Board
Checks if the cell is empty at the location of a specified move.
checkCol(int, Mark)
- Method in class
Board
Checks for "three in a row", for a specified column and mark.
checkDiag(int, Mark)
- Method in class
Board
Checks for "three in a row", for a specified diagonal and mark.
checkMove(Move, Board)
- Static method in class
Rules
Checks if a specified move is valid for the specified board.
checkRow(int, Mark)
- Method in class
Board
Checks for "three in a row", for a specified row and mark.
checkWin(Board, Move, Mark)
- Static method in class
Rules
Checks if a specified move results in a win for the specified mark on the board.
D
display()
- Method in class
Board
Displays the board in the console window.
E
equals(Mark)
- Method in class
Mark
Determines if a mark is equal to the compareMark.
G
getCol()
- Method in class
Move
Gets a move's column coordinate.
getMark()
- Method in class
Player
Gets a player's mark.
getMove()
- Method in class
Player
Gets a player's move from input.
getRow()
- Method in class
Move
Gets a move's row coordinate.
M
Mark
- class
Mark
.
The Mark class represents a player's mark, which is assumed to be a single character, and is used to mark the board for the game Tic Tac Toe.
Mark(String)
- Constructor for class
Mark
Constructs a Mark object using the first character of the specified String.
markMove(Move, Mark)
- Method in class
Board
Puts a player's mark in the cell corresponding to the specified move.
Move
- class
Move
.
The Move class represents a player's move on the 3 by 3 grid as a row and column coordinate pair for the game Tic Tac Toe.
Move(int, int)
- Constructor for class
Move
Constructs a Move object at specified row and column.
P
Player
- class
Player
.
The Player class represents a player of the game Tic Tac Toe.
Player(String)
- Constructor for class
Player
Constructs a Player object with an inputted name and specified mark.
R
Rules
- class
Rules
.
The Rules class is used to verify that players are playing by the rules for the game Tic Tac Toe.
Rules()
- Constructor for class
Rules
T
toString()
- Method in class
Mark
Returns the mark as a String object.
B
C
D
E
G
M
P
R
T
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES