edu.gwu.champAlg
Interface TicTacToeAlgorithm

All Superinterfaces:
Algorithm

public interface TicTacToeAlgorithm
extends Algorithm

The interface that a player needs to implement.

See Also:
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

init

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.

Parameters:
N - an int value
M - an int value
isNoughts - a boolean value

move

TicMove move(TicBoard ticBoard)
When this method is called, you need to return an instance of TicMove to indicate your move.

Parameters:
ticBoard - a TicBoard value
Returns:
a TicMove value

setDebugOn

void setDebugOn()
The GUI calls this method when the "debug" button is clicked. The idea is, you can turn on debugging late in the game, to catch a problem that occurs late.