Computer Chess Club Archives


Search

Terms

Messages

Subject: claiming a 3-fold repetition

Author: Robert Hyatt

Date: 12:41:40 12/01/03


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.  :)




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.