Thanks for the replies. The show scoresheet will do the trick.
However, when i run my script using 'gnubg-cli --commands=script.txt', it
starts a new match, but it does not play it till the end. Is there a way to
force this?
My script looks like:
set rng mersenne 1
set player GNUbg gnubg
set player You gnubg
new match 21
If i add a line with 'play' after the 'new match' line, it makes one move
though, but I would like it to play it until the end.
________________________________
From: Michael Petch <mpe...@capp-sysware.com>
To: bug-gnubg@gnu.org; boomslang <boomslang_f...@yahoo.co.uk>
Sent: Wednesday, 25 January 2012, 21:26
Subject: Re: [Bug-gnubg] Scripts
On 25/01/2012 1:11 PM, Michael Petch wrote:
> show scoresheet
>
> and get output that looks like this:
>
> Score Sheet - Match to 7 points
>
> player1 | player2
> -----------------
> 2 | 0
> 2 | 2
> 2 | 4
> 2 | 7
>
> The last line would be the final score.
>
There is another way and this is a bit of a hack. You can use the "show
score" command but you need to navigate to the end of the match to see
the final score:
You can do something like:
next game 1000000
next 1000000
show score
The output will look like:
The score (after 4 games) is: gnubg 2, root 7 (match to 7 points).
The 1000000 is an arbitrarily large number. The first command advances
to what will effectively be the last game (advance forward 1 million
games). The second one will effectively move to a position beyond the
last move of the match (advances forward 1 million moves). At which
point you show the score.
--
Michael Petch
CApp::Sysware Consulting Ltd.
OpenPGP FingerPrint=D81C 6A0D 987E 7DA5 3219 6715 466A 2ACE 5CAE 3304
_______________________________________________
Bug-gnubg mailing list
Bug-gnubg@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gnubg