public interface TicTacToeAlgorithm
The interface that a player needs to implement.
Algorithm
Method Summary | |
---|---|
void |
init(int N,
int M,
boolean isNoughts)
The system calls this method to tell you the board size, the win-streak size and whether you are Noughts or Crosses. |
TicMove |
move(TicBoard ticBoard)
When this method is called, you need to return an instance of TicMove to indicate your move. |
void |
setDebugOn()
The GUI calls this method when the "debug" button is clicked. |
Methods inherited from interface edu.gwu.champAlg.Algorithm |
---|
getName, setPropertyExtractor, toString |
Method Detail |
---|
void init(int N, int M, boolean isNoughts)
N
- an int
valueM
- an int
valueisNoughts
- a boolean
valueTicMove move(TicBoard ticBoard)
TicMove
to indicate your move.
ticBoard
- a TicBoard
value
TicMove
valuevoid setDebugOn()