Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Quiesce in tscp?

Author: Daniel Clausen

Date: 01:38:29 10/27/03

Go up one level in this thread


On October 26, 2003 at 16:57:50, Gopi wrote:

>In Quiesce function in tscp we are doing the following manipulation to pv array,
>pv[ply][ply]=gen_dat[i].m; <--This is ok
>
>But I dont follow the below ones,
>for(j=ply+1;j<pv_length[ply+1];++j)
>    pv[ply][j]=pv[ply+1][j];
>pv_length[ply]=pv_length[ply+1];
>
>Because suppose say ply=2,we have pv_length[2]=2,but above in for loop we get
>pv_length[3] but pv_length[3] is not yet defined so how its used? Can anyone
>explain please? Thanks.

I didn't look at the source code of TSCP now, but what you describe it pretty
normal.

The things pv_length[ply+1] etc _are_ set by the subsequent call to the
search/quiesce function, which is called with the parameter (ply+1).

pv[ply+1][ply+1], pv[ply+1][ply+2] ... pv[ply+1][pv_length[ply+1]] contain the
PV for depth (ply+1)

HTH

Sargon



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.