public class CS15TicTacToeController
extends java.lang.Object
Constructor and Description |
---|
CS15TicTacToeController()
Constructs a controller instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addPlayer(CS15TicTacToePlayer player)
Adds a player to the game of tic tac toe.
|
void |
finishedTurn()
Ends the current player's turn and moves to the other player's
turn.
|
CS15TicTacToePlayer |
getWinningPlayer()
Returns the winning player.
|
void |
playAgain()
Resets game settings in order to restart the game.
|
void |
setControllerMessage(java.lang.String message)
Sets the message in the controller console.
|
public CS15TicTacToeController()
public void addPlayer(CS15TicTacToePlayer player)
player
- player to add to gamepublic void finishedTurn()
public CS15TicTacToePlayer getWinningPlayer()
public void playAgain()
public void setControllerMessage(java.lang.String message)
message
- the message to be displayed