Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: A problem in printing information under winboard

Author: Uri Blass

Date: 11:05:43 01/13/03

Go up one level in this thread


On January 13, 2003 at 14:02:19, Joshua Haglund wrote:

>On January 13, 2003 at 13:46:45, Uri Blass wrote:
>
>>I decided to change my printpv to print information better
>>
>>This is my new printpv
>>I added pv_length= because there was a case when movei printed information with
>>no pv and I wanted to see what was the problem.
>>
>>For some reason winboard has no problem to print pv at small depth but at big
>>depth it can print only the first move.
>>
>>void printpv(int k,int x)
>>{
>>	int j;
>>	if (UseBook==0)
>>	{
>>	printf("depth= %d score= %d time= %d nodes= %d",k, x, (get_ms() - start_time) /
>>10, nodes);
>>	printf("pv_length=%d",pv_length[0]);
>>	for (j = 0; j < pv_length[0]; ++j)
>>	printf(" %s", move_str(pv[0][j].b));
>>	printf("\n");
>>	}
>>	else
>>		printf("book\n");
>>	fflush(stdout);
>>}
>>
>>Uri
>I would like to take a stab at this.
>
>(hit or miss)
>Does UseBook have any relation to the pv_legnth or move_str?
>
>Other than that, it looks fine to me.
>
>Joshua
>toneewa@yahoo.com

When UseBook=1 the move is book move so it is irrelevant to write the nodes and
all the information.
When UseBook=0 the move is not a book move so there is a pv.

Uri



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.