[Top][All Lists]

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

Re: [Bug-gnubg] prunning and sgf

From: Joseph Heled
Subject: Re: [Bug-gnubg] prunning and sgf
Date: Tue, 12 Oct 2004 20:11:02 +1300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616

It means must put it at the end of the eval context? and I need to bump the version number? where? and what else?


Jim Segrave wrote:
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.

reply via email to

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