Games Library
@abstractplay/gameslib contains TypeScript implementations of all Abstract Play games. The front end and back end load games through a small public API.
Documentation
- Creating games — fork, implement, register, PR workflow
- Testing — CLI, playground, unit tests
- API —
gameinfo,GameFactory,addResource - Game object —
GameBasecontract and lifecycle - Flags —
gameinfoflags reference - Helpers — grids, graphs, serialization, and shared utilities
- i18n — translation files
- Examples by feature — which games use which helpers
Resources
- Renderer docs — board JSON schema
- Renderer playground — experiment with
render()output - Gameslib playground — run games in the browser
- Wiki (legacy)
- Discord #dev-curious
Last verified against develop branch.
When changing GameBase, gameinfo.json, or public exports, update /docs in the same PR.