Hi!
On Tue, Dec 28, 2010 at 01:30:48PM -0200, davi vidal wrote:
> Sorry. I forgot to add that I'm storing the moves in SGF format.
> What I'm going to do: get a Go position (dunno how, that's why I'm
> asking about FEN), encode in JSON, parse in JavaScript and draw in
> HTML. As backend, I'm using Ruby, so I can have something as
> 8b10/19/19... and parse using regex.
>
> As far as I can understand from your posts and the previous
> thread, the only drawback is the *ko rules/repetition that I *will*
> miss with FEN, right?
My approach would be either:
(i) Just do away with server backend and do all the go rules and SGF
parsing in JavaScript. If Eidogo can do it, you can too. :-) (Or why not
just use Eidogo altogether?)
(ii) Use FEN plus list of disallowed moves. The backend can determine
the disallowed moves from the ko rules and whatever, but if your
frontend is just "dumb display", you do not care about the state or ko.
You just care about which moves are disallowed, so pass that list of
coordinates along. Or even better, encode them in the FEN with a special
character!
--
Petr "Pasky" Baudis
Computer science education cannot make an expert programmer any more
than studying brushes and pigment can make an expert painter. --esr
_______________________________________________
Computer-go mailing list
[email protected]
http://dvandva.org/cgi-bin/mailman/listinfo/computer-go