public class CS15TicTacToeBoard
extends java.lang.Object
Constructor and Description |
---|
CS15TicTacToeBoard()
Constructs a new tic tac toe board.
|
Modifier and Type | Method and Description |
---|---|
void |
clearHighlights()
Resets the background of all squares to be white, clearing all
highlighted squares.
|
void |
clearSymbols()
Removes all icons marked on squares to reset the board.
|
void |
highlightWinningSquares(javafx.scene.paint.Color color)
Highlights the 3 winning squares with the given color.
|
CS15TicTacToeSquare |
squareAt(int row,
int col)
Returns one CS15TicTacToeSquare from the board at a given row
and column of the board.
|
public CS15TicTacToeBoard()
public void clearHighlights()
public void clearSymbols()
public void highlightWinningSquares(javafx.scene.paint.Color color)
color
- the color to highlight the winning squarespublic CS15TicTacToeSquare squareAt(int row, int col)
row
- the row number of the square to getcol
- the column number of the square to get