Expand description
Data structures and utilities for parsing SGF FF[4] files.
For reading SGFs your starting point will likely be go::parse
. For parsing non-go games
check out the parse
function.
For writing SGFs check out SgfNode::serialize
for writing single game trees or
serialize
for writing whole collections.
Modules§
- go
- Types specific to the game of Go.
- unknown_
game - Generic types for SGFs without a known game.
Structs§
- Parse
Options - Options for parsing SGF files.
- SgfNode
- A node in an SGF Game Tree.
- Simple
Text - An SGF SimpleText value.
- Text
- An SGF Text value.
Enums§
- Color
- An SGF Color value.
- Double
- An SGF Double value.
- Game
Tree - An SGF GameTree value.
- Game
Type - The game recorded in a
GameTree
. - Invalid
Node Error - Err type for
SgfNode::validate
. - Lexer
Error - Error type for failures to tokenize text.
- Property
Type - An SGF property type.
- SgfParse
Error - Error type for failures parsing sgf from text.