Skip to content
Little GolemMake your next move.

To webmaster...

Public forum discussion.

General

#1 · KLOT_KLOT_KLOT

8 Jul 2002

It seems it doesnt recognize the 3 time move repetition in game#1696

#2 · Hjallti

12 Jul 2002

I guess it is a difficult thing to program even ItsYourTurn had this bug after 3 yrs and probably more then 100 000 games played.

#3 · KLOT_KLOT_KLOT

13 Jul 2002

I dont think its so hard to implement! As for ItsYourTurn it comes as no surprise for me, that site is awful in my humble opinion.

#4 · Ed Collins

13 Jul 2002

I don't think it would be hard to implement either. One possible method: After each move, the current position (and the person whose turn it is to move for this position) is stored in an array. (Or stored in a table, if you prefer that term.) After each move this array would be searched from beginning to end. If this current position matches any other entry in the array (and if the person to move is also the same) add one to your repetition counter variable. If this variable counter hits three, then this position has now occurred three times (or is about to occur three times) and thus the player on move can claim a draw. Remember, the three-fold repetition rule is not about MOVES, but about POSITION. If the same POSITION is about to occur three times, and the player on move is the same, this player may claim a draw.

#5 · Cral Frame

13 Jul 2002

Of course, you have to bear in mind that en passant and castling rights have to be the same for it to be a repeated position under this rule.

#6 · Ed Collins

14 Jul 2002

Coreect Lee. Very good. Thus, a couple of other variables would need to be initially stored with the position and also checked.

#7 · Hjallti

15 Jul 2002

I think you make it to difficult... you only have to search positions with the same number of pieces and since pieces don't come back in to the game...