[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] prunning and sgf
From: |
Jim Segrave |
Subject: |
Re: [Bug-gnubg] prunning and sgf |
Date: |
Mon, 11 Oct 2004 20:44:36 +0200 |
User-agent: |
Mutt/1.4i |
On Mon 11 Oct 2004 (19:39 +1300), Joseph Heled wrote:
>
> I just realized that since pruning info is part of the eval context, my
> changes will break reading existing sgf files.
>
> I can't remember, but I am sure this problem has come up before. Any ideas?
When I added the rollout extension things, I added some additional
additional fields to the rollout contexts and then put in a version
(defined in eval.h) to tell sgf.c whether or not to expect the extra
data. If handling an older .sgf file, I simply had to put in default
data (you can't extend a rollout from an older file). You might be
able to use the same approach if it's possible to put some reasonable
values in for the missing data. What I did was to put the string
ver %d at the beginning of the analysis (when it is a rollout). sgf.c
checks for the presence of 'ver' followed by an integer and, if it's
found, it will expect extra data in the analysis.
--
Jim Segrave address@hidden