Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Some beginning questions....

Author: Guillem Barnolas

Date: 13:24:15 10/05/98

Go up one level in this thread


On October 04, 1998 at 16:54:52, Inmann Werner wrote:

>On October 04, 1998 at 13:08:51, Guillem Barnolas wrote:
>
>>
>>Well, I have some questions.. and I know some of them I've made before, but I
.......
>You have to call kopiere_hvar, when ypu want to insert a new PV-move.
>
>typedef struct {
>	char von;                    /* from field*/
>	char nach;                   /* to field*/
>} zug_t;
>
>zug_t HVar[50][50];  /*HVar is the PV*/
>
>kopiere_hvar(int aktzug)
>{
>int i;
>	/* insert new move into PV */
>	HVar[tiefe][tiefe]=STAPEL[aktzug];
>        /*STAPEL[aktzug] is current move like zug_t*/
>	for(i=1;;i++)
>	{
>		if(HVar[tiefe+1][tiefe+i].von==0)
>		{
>			HVar[tiefe][tiefe+i]=HVar[tiefe+1][tiefe+i];
>			return;
>		}
>		HVar[tiefe][tiefe+i]=HVar[tiefe+1][tiefe+i];
>	}
>}
>
>At the end, in HVar[0][i] stands the PV
>

Thanks.. I suppose tiefe should be MaxDepth-Depth, shouldn't it??? I'll try
later.. thanks..



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.