Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: A problem in printing information under winboard

Author: Uri Blass

Date: 13:20:02 01/13/03

Go up one level in this thread


On January 13, 2003 at 14:26:09, Lieven Clarisse 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
>
>The problem *might* be that the string is too long, and winboard trunctates the
>string. You could try splitting up the string in smaller ones.

I do not know what is the problem but even this does not work for me

printf("depth= %d score= %d",k, x);
	printf("\n");
	printf("time= %d nodes= %d",(get_ms() - start_time) / 10, nodes);

When I print only varaibles there is no problem.

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.