Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Repetition detection in tscp?

Author: William H Rogers

Date: 10:06:45 10/28/03

Go up one level in this thread


On October 28, 2003 at 12:48:10, Leen Ammeraal wrote:

>
>I am not very familiar with tscp, but I suppose you should read the code
>as follows:
>If ply is nonzero, we look if there is a repetition of positions
>in the previous moves. If so, reps returns a nonzero
>value, possibly 1, indicating 'true'. (Remember, in C the value
>0 means 'false' and any nonzero value 'true'.) Then the evaluation
>function should return 0. This not a logical but rather a numerical value,
>indicating that a continuation of the game in this way will lead to a draw.
>I don't think this is related to the 50 moves rule.
>Leen
You are correct. Three moves is just another way to detect a draw. The 50 move
rule also detects a draw if no pawn has been moved in the last 50 moves or a
piece has been captured
bill



This page took 0 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.