by Pedro Castro » 29 Sep 2008, 17:00
Hi Fermin,
If there is a insufficient material on both sides, you can claim the game draw and immediately stop the engine. A insufficient material occurs when both sides have not pawns and the material is less than a rook, there are 3 exceptions: if each side has a knight, if one side has a knight and the other a bishop and finally if each side has bishop of a different color.
The other cases that you can claim draw are stalemate, triple repetition and 50 moves rule.
You can also stop the engine when do checkmate or when you receive, if is you who gives you send claim to the engine, regardless that the gui can do.
If you send a claim of won or draw when in fact it is not, then the director of the tournament normally punishes the engine and makes you lose the game.
------------------------------------------------------------------------------------
xboard protocal -->
RESULT {COMMENT}
When your engine detects that the game has ended by rule, your engine must output a line of the form "RESULT {comment}" (without the quotes), where RESULT is a PGN result code (1-0, 0-1, or 1/2-1/2), and comment is the reason. Here "by rule" means that the game is definitely over because of what happened on the board. In normal chess, this includes checkmate, stalemate, triple repetition, the 50 move rule, or insufficient material; it does not include loss on time or the like. Examples:
0-1 {Black mates}
1-0 {White mates}
1/2-1/2 {Draw by repetition}
1/2-1/2 {Stalemate}
Best wishes,
Pedro Castro