@jamunlabs/gameu-snakesandladders
v0.1.1
Published
Snakes & Ladders — gameu game
Downloads
294
Readme
gameu-snakesandladders
Classic snakes & ladders for the gameu lobby host.
- 2–4 players, turn-based.
- DOM renderer (no canvas / WebGL).
- Phone controller uses the host's built-in
single_tap/action_pickertemplates — no custom controller bundle.
This game lives outside the gameu host repo as part of the
gameu-games decoupling — each game ships in its own
repo, npm-package-shaped, and reaches the host via POST /api/install
(catalog tier) or via --external-game-dir (local dev).
Dev loop
Today, run from a gameu source clone:
cargo xtask run-game --game-dir /path/to/gameu-snakesandladdersOnce @jamunlabs/gameu-cli ships to npm:
npm i -g @jamunlabs/gameu-cli
cd gameu-snakesandladders
gameu devBuild
npm install
npm run build
gameu buildLayout
| File | Purpose |
|---|---|
| manifest.json | Bundle manifest (id, runtime, player counts, sdk_version). |
| index.html | TV-side game iframe entry point. |
| game.js | Boots the GameRunner with SnakesAndLaddersReducer + SnakesAndLaddersRenderer. |
| reducer.js | Pure synchronous reducer; deterministic dice via the seamed RNG. |
| renderer.js | DOM renderer; build-once 100-cell board + mutate token positions. |
| dev_mode.js | Auto-drive resolvers gated on ?dev=1. |
| *.ts | TypeScript source. |
Runtime contract
Same as the other gameu games — loads /lib/* from the host, imports
from @jamunlabs/gameu-sdk via the host importmap, sandboxed iframe.
