diff options
author | Andrés Ambrois <andresambrois@gmail.com> | 2009-11-04 00:19:00 (GMT) |
---|---|---|
committer | Andrés Ambrois <andresambrois@gmail.com> | 2009-11-04 00:19:00 (GMT) |
commit | 63f177ad62c86e5c45aa9bab0e59fae2268e2429 (patch) | |
tree | 7ad56b7dd53c9f1dfcfb2fbb02d918732cd78b06 /example.sgf | |
parent | 72553701779595033af005dd08c38988bc1308ac (diff) |
sgf.g: A small YAPPS (http://theory.stanford.edu/~amitp/yapps/) grammar for the Smart Game Formatsgf
sgfparser.py: Parser generated by YAPPS from sgf.g
example.sgf: An example SGF file with variations for testing.
Diffstat (limited to 'example.sgf')
-rw-r--r-- | example.sgf | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/example.sgf b/example.sgf new file mode 100644 index 0000000..cfba1bd --- /dev/null +++ b/example.sgf @@ -0,0 +1,30 @@ +( +;GM[1]FF[3] +RU[Japanese]SZ[19]HA[0]KM[5.5] +PW[White] +PB[Black] +GN[Copyright goproblems.com] +DT[1999-07-21]TM[1800] +;C[Black to play and live.] +AW[bb][cb][cc][cd][de][df][cg][ch][dh][ai][bi][ci] +AB[ba][ab][ac][bc][bd][be][cf][bg][bh] +(;B[af];W[ah] +(;B[ce];W[ag] C[only one eye this way]) + +(;B[ag];W[ce]) +) + +(;B[ah];W[af] +(;B[ae];W[bf];B[ag];W[bf] +(;B[af];W[ce] C[oops! you can't take this stone]) + +(;B[ce];W[af];B[bg] C[RIGHT black plays under the stones and lives]) +) + +(;B[bf];W[ae]) +) + +(;B[ae];W[ag]) + +) + |