Claim draws

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

Claim draws

Postby Fermin Serrano » 29 Sep 2008, 15:00

Last Chess-war tournament, my engine plays a few games where Tournament Director declare them as loss when they were technical draws.
My engine analyzes all positions and if there are insufficient material I declare a draw. Olliver told me that I can not declare draws, but I can claim them. My question is:
what draws must I claim and what draws can I sets as win or lose without continue playing?
User avatar
Fermin Serrano
 
Posts: 72
Joined: 10 Apr 2008, 18:20
Location: Madrid (Spain)

Re: Claim draws

Postby Harald Johnsen » 29 Sep 2008, 16:22

I think the draws you could claim are those from the fide rules and no other draws (like table base draws).

But there is no need to code anything about game continuation. You are supposed to play when you are asked to (by the ui/automated tournament manager).
The tournament manager will stop the game when needed (mate, draw, etc).

HJ.
User avatar
Harald Johnsen
 
Posts: 43
Joined: 20 Aug 2007, 17:01
Location: France

Re: Claim draws

Postby 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
User avatar
Pedro Castro
 
Posts: 180
Joined: 28 Jan 2005, 01:09
Location: Pays Basque (Spain)

Re: Claim draws

Postby Jaco van Niekerk » 03 Oct 2008, 03:32

Isn't that bishops of the same colour being a draw?

Here is a technical mate with bishops of different coloured squares:

KBx
xxx
xkb
User avatar
Jaco van Niekerk
 
Posts: 31
Joined: 30 Jul 2006, 21:23
Location: South Africa

Re: Claim draws

Postby H.G.Muller » 03 Oct 2008, 10:34

Indeed,KBKB with Bishops of like color is draw. This is implied by Pedro, as he did not mention it in his exceptions.

So WinBoard recognizes the following as draw-by-rule:
KK
KBK
KNK
KBKB (like B)
KBBK (like B)

These are the draws that can be claimed by the engine. Practical draws that are not draw by FIDE rules, (because checkmate positions are possible), and can thus not be claimed by an engine, are:

KNNK
KNKN
KBKN
KNKB
KBKB (unlike B)
KRKR

The engine will have to play on in such cases, or it will forfeit the game. The TD can decide to have WinBoard adjudicate such games as draws, so that the engines would not have to play on very long.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 32 guests