Skip to main content

Module sgf

Module sgf 

Source
Expand description

Bounded SGF collections and Go positions. No file access or application cache.

FF[4] Go (GM[1]), including variations, setup stones, captures and annotations. SGF records describe positions even when moves violate competitive rules; replay deliberately does not enforce turn order, ko, or move legality.

Structs§

Collection
Compact source ranges retain unknown properties without copying their values. Node IDs are local to this collection. No position or image is stored per node.
Game
Line
Mark
Node
Played
Point
Position
A single board. Applications may cache a bounded number of these independently.
RenderOptions

Enums§

Color
Error
MarkKind

Constants§

MAX_NODES
MAX_SOURCE
MAX_VALUE

Functions§

rasterize
to_svg
Produce a self-contained board diagram. User text is escaped as XML text.

Type Aliases§

NodeId