Tabletop Engine — Handbook
Tabletop Engine — Handbook
The complete guide to the Tabletop game engine: how it’s built, how to play, and how to ship a new game on top of it.
Contents
- Overview & Quick Start
- Architecture
- Engine Concepts — game lifecycle, state model, action/event model
- Card System
- Board System
- Assets & Themes
- Firebase Multiplayer & Offline Mode
- Creating Games — card, board, hybrid; adding assets & themes
- Testing Guide
- Accessibility Guide
- Performance Guide
- Troubleshooting
- Roadmap
- API Reference
The one-paragraph version
The engine core (src/engine/) is pure TypeScript: it owns players, turns,
phases, a deterministic RNG, serialization and undo/redo. A GameDefinition
describes a game with a setup and a pure reducer; the engine’s single
applyAction function is the deterministic transition every move flows through
— local, hot-seat, AI or networked. The React layer (src/ui/) renders it
with themeable SVG assets, and a SyncAdapter (src/net/) handles online
rooms with a local cross-tab backend by default and an optional Firebase one.
Three demo games prove it’s reusable. Add your own by registering a definition
plus a view — no engine changes required.