[Top][All Lists]

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

RE: [Bug-gnubg] gnubg defends poorly against outer primes

From: Misja Alma
Subject: RE: [Bug-gnubg] gnubg defends poorly against outer primes
Date: Mon, 24 Nov 2003 21:04:30 +0100

I wrote a .mat file which started with the illegal move, this is it:

 11 point match

 Game 1
 Shaw : 0                        Bennet : 0
 1) 55: Illegal play
-3;-2;-2;-2;-1;-2;2;4;2;) 42: 25/23*

Now if I import this into Snowie using the 'import JellyFish log file'
function, Snowie will crash! But if I import this file using the 'import
standard .txt' function, Snowie will import it and interpret it correctly.
By the way Snowie was able to import all .gam and .mat files which were
exported from gnubg, as if they were 'standard .txt' files.
So this seems to be the trick!


-----Oorspronkelijk bericht-----
Van: address@hidden
[mailto:address@hidden Joern Thyssen
Verzonden: Monday, November 24, 2003 8:34 PM
Aan: Jim Segrave
CC: Misja Alma; address@hidden
Onderwerp: Re: [Bug-gnubg] gnubg defends poorly against outer primes

On Mon, Nov 24, 2003 at 06:07:43PM +0100, Jim Segrave wrote
> On Mon 24 Nov 2003 (10:27 +0000), Joern Thyssen wrote:
> > On Sun, Nov 23, 2003 at 08:01:24PM +0100, Misja Alma wrote
> > >
> > > As far as I can
> > > see the only solution would be to implement an export to Snowie
> > > format?
> >
> > It's probably not the only solution. Snowie support it's own extension
> > to the .mat format, where illegal moves or incomplete games can be set
> > up using a specialised string identical to the Snowie .txt position
> > files.
> do we have that documented?

Do you mean if the Snowie .txt position format is documented?

> Is it similar to the one Oystein raised
> last night?

No, but very similar.

You surely must remember the Snowie .txt position format since you wrote
the initial perl parser I based my C routine on?!

An example:

17) 55: Illegal play
-3;-2;-2;-2;-1;-2;2;4;2;) 42: 25/23*

from http://mail.gnu.org/archive/html/bug-gnubg/2003-04/msg00189.html
(see attachment)

The stuff inside the parenthesis are the Snowie .txt position format.

I think the best is to let the rollout keep exporting .sgf files, but
write an extension to the .mat exporter so it replaces SGF PL, CF, AE,
and AB records with the a "illegal play" record in the .mat file. The
exporter should consolidate the PL, CF, AE, and AB records into one
"illegal play" record.

The resulting file should be something like:

 1) 11: Illegal play ( .... )  42: 13/9 11/9


 1(                            11: Illegal play ( ... )

I think Snowie should be able to import such a file. Maybe someone can
manually write such a .mat file and verify if Snowie imports it?


reply via email to

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