Module go

Source
Expand description

Types specific to the game of Go.

This module contains a go-specific SgfProp implementation which includes go specific properties (HA, KM, TB, TW). Point and Stone values map to Point, and Move values map to Move. Properties with invalid moves or points map to Prop::Invalid (as do any invalid general properties).

This module also includes a convenience parse function which fails on non-go games and returns the SgfNode values directly instead of returning GameTree values.

Structs§

Point
An SGF Point value for the Game of Go.

Enums§

Move
An SGF Move value for the Game of Go.
Prop
An SGF Property with identifier and value.

Functions§

parse
Returns the SgfNode values for Go games parsed from the provided text.

Type Aliases§

Stone
An SGF Stone value for the Game of Go.