No description
  • TypeScript 53.9%
  • Vue 23.6%
  • JavaScript 20.1%
  • Python 1.4%
  • CSS 0.9%
Find a file
coyotte508 6dc34d919c viewer: tentative-turn buffer instead of engine Undo moves
- 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)
2026-08-16 21:03:05 +00:00
.github/workflows Migrate CI to OIDC trusted publishing 2026-08-12 22:00:34 +02:00
.husky Migrate CI to OIDC trusted publishing 2026-08-12 22:00:34 +02:00
engine engine: replace destructive undo with tentative-turn model 2026-08-16 20:55:44 +00:00
viewer viewer: tentative-turn buffer instead of engine Undo moves 2026-08-16 21:03:05 +00:00
.editorconfig Mono-repo configuration 2021-07-03 21:39:13 +02:00
.gitignore chore: unbreak tooling (pnpm 11 lockfile, dep build allow-list, organize-imports plugin) 2026-08-16 20:55:41 +00:00
.gitpod.dockerfile Mono-repo configuration 2021-07-03 21:39:13 +02:00
.gitpod.yml Add continuous integration 2021-07-04 00:06:50 +02:00
.npmrc Mono-repo configuration 2021-07-03 21:39:13 +02:00
.prettierrc Add continuous integration 2021-07-04 00:06:50 +02:00
package.json chore: unbreak tooling (pnpm 11 lockfile, dep build allow-list, organize-imports plugin) 2026-08-16 20:55:41 +00:00
pnpm-lock.yaml viewer: fix pre-existing build breakage 2026-08-16 20:58:01 +00:00
pnpm-workspace.yaml chore: unbreak tooling (pnpm 11 lockfile, dep build allow-list, organize-imports plugin) 2026-08-16 20:55:41 +00:00
README.md Update README.md 2026-08-12 22:05:05 +02:00

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