xonecas.ioDon't click! Sean Caetano Martin Sign in

tiny-adventure / commits / 6de5cb6

CLAUDE.md maps the new client modules, the balance check and hex-by-hex walking

Co-Authored-By: Claude Opus 5.5

sacenox2 days ago6de5cb6efd22964d9d700fe10e40fb24e9b9131cparent 959ee7d1 file changed

CLAUDE.md+3-1
@@ -11,7 +11,7 @@ A seeded tabletop campaign: a Go server owns every rule, a Three.js client in `w
1111 - `internal/gen`: builds a `World` from a seed: terrain, factions, POIs, spawns, bands, loot, landmarks, missions, party, encounters.
1212 - `internal/sim`: game rules that are pure functions: classes and growth, abilities, items (`BuildItem`, `RollItem`), traits and `EdgeOf`, combat, `Forecast` odds, XP.
1313 - `internal/server`: HTTP and the stateful game: move, bands, hazards, landmarks, clock and camping, shops, threat view, fights.
14-- `web/js`: one concern per file. `main.js` wires the flow. `kit.js` is the canvas-texture UI layer, `frames.js` its widgets, `text.js` fonts and text, `theme.js` colour roles, `layout.js` widget rects. Board and art: `board.js`, `flora.js`, `props.js`, `figures.js`, `minis.js`, `beasts.js`, `sky.js`.
14+- `web/js`: one concern per file. `main.js` wires the flow. `kit.js` is the canvas-texture UI layer, `frames.js` its widgets, `text.js` fonts and text, `theme.js` colour roles, `layout.js` widget rects. Board and art: `board.js`, `flora.js`, `props.js`, `figures.js`, `minis.js`, `beasts.js`, `sky.js`. Feedback: `combat.js` plays the server log one turn at a time, `levelup.js` celebrates level gains above the hero cards, `route.js` draws the `/api/path` preview, `medallions.js` renders each hero' …
1515 - `scripts`: the harness. `serve.sh` starts a server, `driver.mjs` drives the browser, `bot.mjs` is the careful player policy shared by verify and playthrough, `layout.mjs` checks rects.
1616
1717 ## Commands
@@ -39,6 +39,8 @@ A seeded tabletop campaign: a Go server owns every rule, a Three.js client in `w
3939 - Defeat ends the campaign. Any harness setup that fights through the API can end the run; pin the seed and check `phase`.
4040 - Never kill processes with `pkill -f`; it matches the agent's own shell. Find a server by port: `ss -ltnpH 'sport = :PORT'`.
4141 - Seeds above 2^53 lose precision in JS. `rng.NewSeed` stays below a million.
42+- Balance is measured with the careful bot over seeds 1 to 20 through the API. Expect about 19 wins in about 9 days. `TestCarefulPlayWinsMostCampaigns` is the fast Go guard.
43+- The client walks one hex per `/api/move {steps: 1}` so the player can change course. Keep `track.busy` true for the whole walk; the harness waits on it.
4244
4345 ## Definition of done