[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] GNUBG no-gui question

From: Jim Segrave
Subject: Re: [Bug-gnubg] GNUBG no-gui question
Date: Thu, 3 Feb 2005 09:05:59 +0100
User-agent: Mutt/1.4.1i

On Thu 03 Feb 2005 (02:25 +0100), Joachim Matussek wrote:
> Hello,
> i tried to perform some batch rollouts with a GNUBG no-gui Windows version.
> I use a .sh file containing the following commands.
> ./gnubg-no-gui.exe  -q << EOF > aa/stats.txt
> new session
> set board 67sCAEDtvRAgAA
> set matchid cAkAAAAAAAAA
> rollout
> .
> .
> .
> I have done ply-evaluations with "hint" which worked very well. But "rollout" 
> doesn?t seem to work. Maybe the reason is that the GNUBG output contains some 
> backspaces.
> Any idea or workarounds?

The reason is that gnubg has code to check if stdout is a terminal - 
            fShowProgress = isatty( STDOUT_FILENO );

This is meant to prevent diverted output from being filled with
intermediate results, for example, rolling out that one position
produces something like 300K of output. Under Unix, programs such as 
script allow you to capture the full output:

$ script gnubg.out
script started, output file is gnubg.out
$ gnubg -t ...
$ exit
script done, output file is gnubg.out

captures everything. The bad news is that in the non-gui version, I
can't find any command you can run to see the rollout results when
they are completed. 

What's needed is a command which shows the rollout results, which is
not as easy as it sounds, as the current output is done as a callback
function from within the rollout code. 

Jim Segrave           address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]