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

Re: [computer-go] SGF/GoGui Question



On Thursday 11 August 2005 20:29, Go Fast wrote:
> I wrote this simple program supporting the GTP protocol. I can play
> with it by GoGui, and it works fine. However, I am very confused with
> the file it saved. A play showing in the gtp shelll as O3, is saved as
> nq. D4 in the screen becomes dq in the file. I have no idea why such
> conversion is made, should not O3 be oc, D4 be DD? Any ideas?

the encoding of Go moves in SGF is described here:

http://www.red-bean.com/sgf/go.html

the coordinate 'aa' is in the upper left corner, but most printed Go boards 
have 'A1' in the lower left corner, that is why I do the transformation.
the coordinate 'j' is not omitted in SGF coordinates.

the reason for the non-human-readable encoding of the moves is historical 
only. it is a bit easier to parse and a bit more space efficient.
whether that justifies to give up the human-readability was always 
controversial, but SGF is the de-facto file standard for Go games, so I 
would simply accept it :-)

- Markus

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