No description
- TypeScript 53.9%
- Vue 23.6%
- JavaScript 20.1%
- Python 1.4%
- CSS 0.9%
- Game.vue keeps turnMoves (the current turn's atomic moves) alongside the last committed state; every action emits the FULL buffer as the move payload, and the local preview replays the buffer with fake engine moves - undo pops the buffer: re-emits the shortened turn if non-empty, or just resets the preview to the committed state with no server call (nothing was ever persisted for the turn) - the buffer is cleared whenever a committed state (newTurn !== false) arrives from the platform, or when a local move completes the turn - undo button availability = non-empty buffer (the Undo engine move is gone) - launch.ts feeds the state embedded in move responses (logSlice().state) to the game — that's the only channel through which tentative states arrive — and falls back to fetchState otherwise - self-contained dev mode mimics the platform: replays the buffer from the committed state and only persists committed results - bump to 2.0.0 (pairs with container-engine 2.x) |
||
|---|---|---|
| .github/workflows | ||
| .husky | ||
| engine | ||
| viewer | ||
| .editorconfig | ||
| .gitignore | ||
| .gitpod.dockerfile | ||
| .gitpod.yml | ||
| .npmrc | ||
| .prettierrc | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
Container
Mono repo containing the viewer & the engine for Gaia Container
Checkout their READMEs:
Demo
Check out boardgamers.space! Reach out to us if you want to contribute.
Install
Do pnpm install in the main folder
Test locally
After the installation step, you can run the viewer with:
cd viewer
npm run serve
It will use the engine in its sibling folder