bug-gnubg
[Top][All Lists]
Advanced

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

Re: No command line?


From: Jim Segrave
Subject: Re: No command line?
Date: Mon, 1 Mar 2021 21:24:16 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0

I ust tested with a fresh build of gnubg. I have a script which takes exported games from DailyGammon as .mat files akes them into .mat file and then creates a command file to import the .mat file, analyse it, print the statistics t the console and save the analysed match as a .sgf file. The command file (in this case called 4413280.cmd) contains the 4 gnubg commands

=======

import mat /tmp/4413280.mat
analyze match
save match /tmp/4413280.sgf
show statistics match
=======

And I then run gnubg:

/usr/local/bin/gnubg -t -c /tmp/4413280.cmd

This works exactly as it should

My advice for setting options like the luckanalysis ones would be to save your current .gnubg/gnubgautorc.rc file and replace it one with the settings you want here, then put the original back when you're done. Unfortunately, there's no command line option to specify the configuration file to use.

As for what commands are available, you can while away a morning byt starting gnubg with the -t option, then typing help. Pick one of the topics and type help topic tab to get a list of the subtopics until finally the last tab actually produces the help information. There's a *lot* of options there, almost all of which can be in a command file


On 3/1/21 2:55 PM, Chris Wilson wrote:
Years ago I would batch analyze my matches. I wrote a program that created entries in the following format (minus the dashes):

---
set cache 65536
set Priority Idle
set analysis luckanalysis plies 2
set analysis luckanalysis reduced 2
set analysis luckanalysis cubeful on

import mat 'G:\NewMatches\scoper10.mat'
analyze match
save match 'G:\NewMatches\Analyzed\scoper10.sgf'
relational add match
---

My program writes the entries to a text file (usually 25 matches per file) which I then used with gnubg-no-gui. I've looked everywhere for information on command-line options. Is there no way to do this with the current version? I would like to accomplish the same task at 4-ply as well as automate rollouts on some matches.

Chris


reply via email to

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