Forum Archive :
GNU Backgammon
Saving rollout results from command-line interface
|
I'm importing many positions from a command-line text file.
I can evaluate them all, and save the evals to a single output text
file.
But I can't seem to get any rollout results. I've tried exporting each
position to a separate text file, but I end up with no rollout results
after each exported position.
Thoughts?
|
|
Ian Shaw writes:
Here is what I do.
hint
rollout =1
export position html ".\FreeDrop\DMP61a_66.htm"
rollout =2
export position html ".\FreeDrop\DMP61a_66.htm"
This rolls out the top play (found by whichever "evaluation" settings
you use), saves the result (in case the computer crashes), then rolls
out the second best play and saves the results again.
If you want to roll out the plays in parallel as you would from the gui,
then the command is "rollout =1 =2 =3", although I'm unsure whether you
need the "=" sign each time.
You have to set confirm save off to avoid being prompted to overwrite
the already created file.
You can also use the command "save game filename.sgf" to save a match in
gnubg format.
|
|
Jeremy Bagai writes:
Thanks, Ian. I can get that to work for checker plays.
Can you give me a sample for a cube-action rollout? I'm frustrated in
that I can't find the analogous commands. (I can see that the CLI is
doing a cube-action rollout, but I'm unable to export those results in
the same manner.) Here's what's not working for me:
set matchid cAngAAAAAAAA
hint
rollout
export position text c:\batch\output\rollresults1.txt
|
|
Ian Shaw writes:
There are two things wrong.
Firstly, the correct command is "rollout =cube". Simply using "rollout"
gives a rollout of the position only, not the doubling decision.
Secondly, I have only got the cube export to work by actually playing a
move after the roll. The rollout then appears in the text file. I
suspect that gnubg does not create a move record in the analysis until
the chequers are played. This is not very satisfactory; I'll post a bug
report on the developers' forum. This works for me:
rollout =cube
roll
move 13/7 8/7 (or whatever, the word "move" is optional)
export match text filename
I've tried to find a way to play the move automatically, but failed. I
think you will have to enter a valid roll & move after the cube action.
You might find it useful to use "set rng manual" (at the top of the
script), and then use "set dice n n" instead of "roll".
|
|
Ian Shaw writes:
I've worked out how not to have to play the next move.
set player 0 human
set player 1 human
rollout =cube
double
take
export game text filename.txt
A final point. If you use "export position", I think only the position
is exported, with no analysis. Use "export game" or "export match",
(I've experienced crashes with "export session").
|
|
Christain Anthon writes:
This should work as well I think
set player 0 human
set player 1 human
rollout =cube
double
take
previous
previous
export position text filename.txt
|
|
|
|
GNU Backgammon
- Analyzing GamesGrid matches (Roy Passfield, Dec 2001)
- Batch analysis tool (Øystein Johansen, June 2004)
- Cache size (Ned Cross+, Mar 2004)
- Compiling for Windows (Øystein Johansen, Jan 2002)
- Edit mode removing checker from bar (Scott Steiner+, May 2003)
- Entering an annotated match (Albert Silver, Dec 2003)
- Error rates: Gnu vs. Snowie (Raccoon, Mar 2006)
- Even-ply/odd-ply effect (Raccoon, Nov 2004)
- Even-ply/odd-ply effect (Tom Keith+, Oct 2003)
- Even-ply/odd-ply effect (Scott Steiner+, Dec 2002)
- Filter settings (Robert-Jan Veldhuizen, Nov 2004)
- Gnu 0.13 versus Jellyfish and Snowie (Torsten Schoop, Aug 2003)
- Gnu 0.13 vs. Snowie 4 (Albert Silver, June 2003)
- Gnu 0.14 vs. Jellyfish (Michael Howard+, July 2003)
- Gnu versus Snowie and Jellyfish (Michael Depreli, Oct 2005)
- How luck factor is calculated (Gregg Cattanach, Aug 2002)
- How rollouts work (Gary Wong, July 1999)
- How to enter an illegal move (Øystein Johansen, Aug 2003)
- Importing .gam files (PAR+, Mar 2005)
- Importing PartyGammon matches (rew+, July 2006)
- Improving your game using GnuBG (D.U.G.+, Nov 2002)
- Installing on Windows (maareyes, Oct 2001)
- Interpreting JSD's (Adrian Wright+, Feb 2005)
- JSD's and confidence intervals (Daniel Murphy+, Jan 2005)
- Logging rollouts (Øystein Johansen, Oct 2004)
- Luck rate (Kees van den Doel+, May 2002)
- MWC versus Equity (EMG) (Ken+, Apr 2005)
- Manually entering first roll (Andreas Graf+, Apr 2005)
- Match equity tables (Raccoon, July 2005)
- Personal reflections (Louis Nardy Pillards, Sept 2002)
- Playing two computers against each other (Stanley E. Richards+, Mar 2008)
- Python scripting (Øystein Johansen+, Nov 2004)
- Quasi-random dice in rollouts (Ian Shaw, Mar 2004)
- Question marks in game list (Jim Segrave, July 2005)
- Questions and answers (Jim Segrave+, Jan 2003)
- Questions and answers (Jørn Thyssen, Aug 2002)
- Restarting a rollout with different settings (Jim Segrave, Apr 2005)
- Restarting a rollout with different settings (Robert-Jan Veldhuizen, Apr 2004)
- Rollout settings (geoff arnold+, Apr 2007)
- Rollout settings (Stick+, Nov 2005)
- Rollout settings (Robert-Jan Veldhuizen, Mar 2004)
- Rollout settings (Ian Dunstan, Aug 2003)
- Rollout settings for the impatient (Robert-Jan Veldhuizen, June 2004)
- Running rollouts in background (Bruce+, Apr 2004)
- Saving rollout results from command-line interface (Jeremy Bagai+, Apr 2006)
- Saving rollouts (Mislav Radica+, May 2006)
- Setting GnuBG's playing strength (JP White, Sept 2001)
- Setting skill level (Jim Segrave, Apr 2004)
- Setting up and saving a rollout (Albert Silver, Dec 2003)
- What's GNU? (Gary Wong, Oct 2001)
- Which player is player 0? (Neil Kazaross+, Oct 2004)
From GammOnLine
Long message
Recommended reading
Recent addition
|
| |
|