Looks neat, but it really needs tests. Then it’ll go from “working” to
working.
P.S. You’re mixing tabs and spaces and your indentation looks
absolutely wack as a result. Stick to 2 spaces per indent.
Hi Ryan, thanks for the input. I’ll fix that indentation. Do you know
any particular place to read up on how to create tests, or will any
appropriate google search get me something decent?
I was wondering if anyone had any better ideas for the implementation -
the SGF format is pretty much a tree, and so I’ve basically implemented
a linked list. It’s not particularly ruby-ish and that bugs me, but I
couldn’t think of an elegant solution. Any ideas, however wacky they may
be?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.