Public Member Functions | |
void | start () |
Start the fork wrapping GNUChess The standard input and output from GNUChess are redirected to discuss with the parent GNUChess is started with -x option to make it easier to collect moves from it. | |
Move< ChessBoard::Coords > | getMove () |
Gets the move that the controler wants to play This function is generally waiting for the move from the controler. | |
void | notify (const Move< ChessBoard::Coords > &move) |
void | setColorControled (int color) |
Static Public Member Functions | |
static bool | checkAvailability () |
Move< ChessBoard::Coords > QtGNUChessControler::getMove | ( | ) | [virtual] |
Gets the move that the controler wants to play This function is generally waiting for the move from the controler.
Implements Controler< ChessBoard >.
void QtGNUChessControler::notify | ( | const Move< ChessBoard::Coords > & | message | ) | [virtual] |
function called with the message to be passed
message |
Implements Listener< Move< ChessBoard::Coords > >.
void QtGNUChessControler::setColorControled | ( | int | color | ) | [inline, virtual] |
Since GNUChess basically does not know which color it is controlling, when color is white, we tell it to GNUChess
Reimplemented from Controler< ChessBoard >.