edu.gwu.champAlg
Interface ChessAlgorithm

All Superinterfaces:
Algorithm

public interface ChessAlgorithm
extends Algorithm

Interface ChessAlgorithm must be implemented by a chess-playing algorithm.

See Also:
Algorithm

Method Summary
 ChessMove move(ChessBoard chessBoard)
          Your move() method is called when it's your turn to make a move.
 void setColorWhite(boolean isWhite)
          Method setColorWhite() is called to tell you whether you are white (isWhite=true) or black.
 
Methods inherited from interface edu.gwu.champAlg.Algorithm
getName, setPropertyExtractor, toString
 

Method Detail

setColorWhite

void setColorWhite(boolean isWhite)
Method setColorWhite() is called to tell you whether you are white (isWhite=true) or black.

Parameters:
isWhite - a boolean value

move

ChessMove move(ChessBoard chessBoard)
Your move() method is called when it's your turn to make a move. The board is given to you as parameter.

Parameters:
chessBoard - a ChessBoard value
Returns:
a ChessMove value