public interface ChessAlgorithm
Interface ChessAlgorithm must be implemented by
a chess-playing algorithm.
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 |
|---|
void setColorWhite(boolean isWhite)
setColorWhite() is called to tell you whether
you are white (isWhite=true) or black.
isWhite - a boolean valueChessMove move(ChessBoard chessBoard)
move() method is called when it's your turn
to make a move. The board is given to you as parameter.
chessBoard - a ChessBoard value
ChessMove value