Awesome, great idea, thanks!

On Sat, Oct 15, 2022 at 4:35 PM Philippe Michel <[email protected]>
wrote:

> On Sat, Oct 15, 2022 at 12:55:36PM -0400, Turker Eflanli wrote:
>
> > It just parses the file, with the python scripts [...]
>
> If you're familiar with python you could consider using gnubg's internal
> python interpreter (accessed with a ">" in gnubg's CLI).
>
> For instance you could try something like this to get an idea of what it
> makes available when you load an analyzed match:
>
> gnubg.command("load match xxx.sgf")
>
> match = gnubg.match()
>
> for game in match.get("games"):
>     for action in game.get("game"):
>         print("======");
>         print(action);
>
> The match object is somewhat complex but will still be much easier to
> use than starting from the raw sgf file.
>

Reply via email to