bug-xboard
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-XBoard] how to claim draw by rule (how is it handled in the pro


From: Tim Mann
Subject: Re: [Bug-XBoard] how to claim draw by rule (how is it handled in the protocol)
Date: Tue, 14 Aug 2007 22:04:09 -0700

If the game is a draw by rule, the GUI should send the engine the
following command:

   result 1/2-1/2 {Draw by repetition}

...where "{Draw by repetition}" can be omitted or replaced with
whatever the exact reason for the draw is.

Small note: This is a little different than sending moves, where the
engine gets to (in fact, is required to) check the move for legality
and reject it if it's illegal.  The engine doesn't get to check whether
the game is really a draw when it gets the "result" command; it's just
supposed to believe it.

On Wed, 08 Aug 2007 22:40:20 -0700, Matthew Lai <address@hidden> wrote:
> Hi,
> Thank you for this great program. I am currently developing a new chess 
> engine for it, and am having a question regarding how the protocol 
> handles draws that need to be claimed (3 fold and 50 rep).
> 
> According to the FIDE rules, both draw by 3 fold and draw by 50 rep has 
> to be claimed by either player, and is not automatic like a stalemate.
> 
> I understand how the engine can claim a draw by sending a result, but I 
> don't see how the user can claim a draw (as opposed to offering a draw 
> in which case the engine can decline).
> 
> Can someone please enlighten me on this matter?
> 
> Thank you very much
> Matthew Lai

-- 
Tim Mann  address@hidden  http://tim-mann.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]