A SGF parser gem

NOTES

(Below are tested on MAC OS X 10.5.8) Use ‘file -i XXX.sgf’ to check file encoding Use ‘iconv -f gb18030 XXX.sgf’ to convert GB2312/GB18030 to UTF16

Benchmark

time for i in 1.1..1000; do bin/sgf spec/fixtures/2009-11-01-1.sgf; done

Fri Jan 8 08:49:18 EST 2010 real 0m26.221s user 0m20.404s sys 0m5.262s

Fri Jan 8 09:55:02 EST 2010 real 0m24.453s user 0m18.758s sys 0m5.080s

Sun Jan 10 10:01:09 EST 2010 real 0m18.660s user 0m12.994s sys 0m5.099s