golo library

A Dart package for the logic of Go/Igo/Weiqi/Baduk board games.

Classes

Board
Represents a Go board state and operations.
BoardTree
Stores canonical Board snapshots keyed by node IDs. Agnostic of tree structure; exposes a cloning Map interface.
Game
Node
Game-side node holding SGF properties and child IDs. Parent links are managed by SgfTree.
SgfTree
Manages SGF node graph and data (no Board snapshots).

Enums

IllegalMoveReason
Reasons why a move is considered illegal.
Stone
Stone colors.

Typedefs

KoInfo = ({Stone stone, Vertex vertex})
Ko (immediate recapture ban) info.
Vertex = ({int x, int y})
0-based board coordinate (x,y).

Exceptions / Errors

IllegalMoveException
Exception thrown for illegal moves.