Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions exercises/sgf-parsing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ An SGF file may look like this:

This is a tree with three nodes:

- The top level node has two properties: FF\[4\] (key = "FF", value =
"4") and C\[root\](key = "C", value = "root"). (FF indicates the
version of SGF and C is a comment.)
- The top level node has three properties: FF\[4\] (key = "FF", value
= "4"), C\[root\](key = "C", value = "root") and SZ\[19\] (key =
"SZ", value = "19"). (FF indicates the version of SGF, C is a
comment and SZ is the size of the board.)
- The top level node has a single child which has a single property:
B\[aa\]. (Black plays on the point encoded as "aa", which is the
1-1 point (which is a stupid place to play)).
Expand Down Expand Up @@ -64,6 +65,7 @@ structure of properties. You do not need to encode knowledge about the
data types of properties, just use the rules for the
[text](http://www.red-bean.com/sgf/sgf4.html#text) type everywhere.


## Exception messages

Sometimes it is necessary to raise an exception. When you do this, you should include a meaningful error message to
Expand Down