Helpers overview

Shared code lives in src/common/. Import from the barrel (../common) or specific subpaths (../common/graphs, ../common/hexes).

When to use what

Need Use
Abstract rectangular board functions like directions and distances RectGrid
Graphs encode specific topography, including edges and directionality Graph classes
Abstract hex edge/vertex math Hex utilities
Serialize Map/Set in game state Serialization
Decktet card games Decktet
Growing hex boards from centres ModularBoardSpecialty graphs
Infinite square grid UnboundedSquareBoardSpecialty graphs

Full cross-index: Examples by feature.

Example games