public class SmartPlayer
extends java.lang.Object
| Constructor and Description |
|---|
SmartPlayer() |
| Modifier and Type | Method and Description |
|---|---|
void |
endGame(TicTacToe finalBoard)
Let's smartAI know that the game has ended.
|
TicTacToe[] |
getSuccessors(TicTacToe t)
This should return every board we've played that came after the board t.
|
void |
move(TicTacToe t)
Makes a move based on past experince.
|
void |
newGame(int player)
Makes sure the smart player is ready to start playing / recording.
|
int |
numberOfTimesSeen(TicTacToe t)
How many times we've played this particular board
|
public void newGame(int player)
player - Which player the SmartPlayer is playing as this game.public void move(TicTacToe t)
t - public void endGame(TicTacToe finalBoard)
finalBoard - The board in its final state.public int numberOfTimesSeen(TicTacToe t)
The - board we're looking at