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

Re: [computer-go] SGC



On Sep 1, 2004, at 4:30 PM, Anders Kierulf wrote:

(This got on the computer Go mailing list by a mail mix-up, but I'll reply
on the list since others may be interested.)

I see you made a compressed SGF format, but I did not understand
the explanation of it. It seems to be a property S[] that assumes
black moves first? - Frank
See http://www.smartgo.com/HTML/index.html?compressedgamecollections.htm.

In SGF, a sequence of moves is represented as follows:

;B[m1];W[m2];B[m3];W[m4];B[m5];W[m6];B[m7];W[m8];B[m9]
(9 x 6 = 54 characters)

In an SGC compressed file, this is written as:

;S[m1m2m3m4m5m6m7m8m9] (4 + 9 x 2 = 22 characters)

Since this is not compatible with SGF, SmartGo uses a different extension
(SGC) for such compressed files. I would encourage other authors of SGF
readers to support this simple compression scheme. For example, this reduces
the GoGoD collection from 40696 KB to 17171 KB (42% of original size). Not
only does it save megabytes on disk, it also speeds up reading large game
collections.
Does it assumes that the first move is Black?

If so, in handicap games where the handicap stones are written as placed stones rather than moves I suppose ;W[m1];S[m2m3m4m5m6m7m8m9] should be used?

Is passing represented by 'tt' or shall we have ;S[m1m2m3m4m5];B[];S[m6m7m8m9]

There are a number of initiatives to extend SGF one way or another by several persons. Wouldn't it make sense to work on a standard FF[5] ?

Marco Scheurer
Sen:te, Lausanne, Switzerland http://www.sente.ch

_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://www.computer-go.org/mailman/listinfo/computer-go/