Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Repetition detection in tscp?

Author: Leen Ammeraal

Date: 07:26:27 10/28/03

Go up one level in this thread


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




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.