Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: claiming a 3-fold repetition

Author: Robert Hyatt

Date: 12:49:00 12/01/03

Go up one level in this thread


On December 01, 2003 at 15:45:02, Daniel Clausen wrote:

>On December 01, 2003 at 15:41:40, Robert Hyatt wrote:
>
>>I have just finished modifying Crafty to do this strictly by the FIDE rules
>>even though I consider it silly to do so.  The easiest solution, for a program
>>that wants to output this:
>>
>>my move is xxx
>>
>>I claim a draw by 3-fold repetition
>>
>>is to output "my move is xxx" followed by the ANSI sequence to back the cursur
>>up
>>3-4 lines, then output "I claim a draw by 3-fold repetition".  It appears to be
>>printed instantly.  However, in reality it is printed milliseconds (or less)
>>right after the move.  So,
>>
>>Crafty's output now looks like this:
>>
>>I claim a draw by 3-fold repetition after my move.
>>
>>White(6): Rcd7+
>>
>>I would hope that no one finds fault with that.  Rcd7+ is Crafty's move.
>>It repeats the position for the third time after that move is played.
>>
>>So now we have _one_ program that does this correctly.  :)
>
>Why the trick of backing up the cursor some lines? Why not simply switch the
>lines? Would this confuse xboard?

Note I am not doing that.  I just suggested it as one solution.  It was a bit
of trouble to me to move the draw claim prior to making the move.  The draw
claim looked thru the repetition list that was updated when the move was really
made OTB.  Moving the rep check up caused a few subtle changes to how that was
done.

>
>Btw: I suggested "draw {Rcd7+}" as a possible xboard-command. That would be the
>best IMHO.
>
>Sargon

That won't work on ICC.  You need to send

draw
Rcd7+

in that order, which I do.  The draw command will either offer the opponent
a draw, or if the repetition occurs after your move, the pending draw command
will terminate the game correctly at that point, posting a 3-fold termination
reason.



This page took 0.01 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.