Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Repetition detection in tscp?

Author: Gopi

Date: 09:27:18 10/28/03

Go up one level in this thread


On October 28, 2003 at 10:26:27, Leen Ammeraal wrote:

>On October 28, 2003 at 09:45:47, Gopi wrote:
>
>>In search() function in tscp we are checking if(ply&&reps()) return 0;
>>Can anyone explain actually what is done please? Thanks.
>
>This means the same as
>
>   if (ply != 0 && reps() != 0) return 0;
>
>You should also know that the function reps is not called
>if ply is zero. So the above is also equivalent with
>
>   if (ply != 0)
>   {  if (reps() != 0) return 0;
>   }
>
>Without looking at the whole program code,
>I suppose that reps is a function that checks whether
>there is a repetition of moves. I hope this helps.
>
>Leen

So even if reps() returns 1 does this condition (ie if(ply&&reps()))  return 0 ?
But only when there is 50 same moves the condition should return 0 right?



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.