[Top][All Lists]

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

Re: [Bug-gnubg] Line-terminal mode

From: Michael Petch
Subject: Re: [Bug-gnubg] Line-terminal mode
Date: Wed, 07 Oct 2009 05:06:12 -0600
User-agent: Microsoft-Entourage/

On 07/10/09 12:33 AM, "Philippe Michel" <address@hidden> wrote:

> Reviewing it from the CLI is very awkward. I would export the session in
> plain text format (with adequate parameters, basically include everything
> but the evaluation parameters) and look at the files with a text editor.

I agree and disagree. I agree that if you are looking to navigate a match
and review the data with your eyes on a move by move basis that exporting it
all as plain text would be easiest.

If your intention is to navigate a match from the CLI, I would bet there is
likely a reason why someone is taking this approach - automated navigation
of a match looking to find pieces of information for purposes of analysis
and reporting.

I don't know what Tim's motivation are but I am betting (a hunch) that he is
looking to find a way to navigate a match move my move in some automated
fashion. If this happens to be the case I would probably say "the CLI is the
way to go, but move to the next level and learn basic python and figure out
Gnubg's interface".

I am a general programmer (with my primary languages being c/c++/java) and
hadn't had much experience with Python until recently. I had been using Bash
scripts (with awk, sed and perl) to parse data and navigate matches. This
served my purposes for a long time however recently I found myself with this
problem "How do I parse a directory of MAT files for the purposes of
reporting Dice statistics with the least amount of work". The simplest
solution involved using GnuBG's python interface which allows access to a
great deal of information (Although there are some limitations, one I
noticed Bob Koca found in January regarding Mathids!) using Python arrays.

If there are people interested in Python and CLI parsing I'd be more than
willing to help them out.

Some other interesting automated python functions would be "Load a MAT file
or existing SGF file, analyse it on [n] ply, find all Errors greater than a
threshold, CMARK the top [m] moves + the users choice) and then rollout all
the cmarks. This type of thing is actually reasonably simple to do in


reply via email to

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