[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [computer-go] SGC
(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.
Anders Kierulf
www.smartgo.com
_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://www.computer-go.org/mailman/listinfo/computer-go/