40 lines
3.7 KiB
Markdown
40 lines
3.7 KiB
Markdown
# Recording Route — deterministic, from verified solver/browser actions
|
||
|
||
This route is generated from solver-verified action sequences (`test/solver-fixtures.json`) and
|
||
the black-box browser tests (`tests/e2e.spec.ts`). It is reproducible by driving the production
|
||
build through **public controls only** — no game state or localStorage is injected. Every beat
|
||
below was exercised by an automated check.
|
||
|
||
Open the game (`npm run preview` → http://localhost:4173) and perform the steps in order.
|
||
|
||
## Verified action sequences
|
||
|
||
- **Scenario 1 (Heat) winning route (8 turns):** `Inner cw → Inner ccw → Middle ccw → Middle ccw → Middle ccw → Middle ccw → Middle cw → Outer cw`
|
||
- **Scenario 1 losing route (8 turns, expires):** `Inner cw × 8`
|
||
- **Scenario 5 (Convergence) winning route (2 turns):** `Inner cw → Inner cw`
|
||
|
||
## Beat-by-beat script (SPEC §16)
|
||
|
||
| # | Beat | Action | Verified evidence |
|
||
|---|------|--------|-------------------|
|
||
| 1 | Title / campaign start | Click **New Campaign** | e2e `start campaign, board renders` |
|
||
| 2 | Exact preview of a rotation | Click a rotation control (e.g. **Inner ⟳**); read the Preview panel + tile delta labels | e2e `preview then commit advances turn` (Commit enabled, deltas shown) |
|
||
| 3 | Rotation → tile movement + flow | **Commit** the Inner ⟳ preview; observe payloads move and the event panel reports `Flow`/`Producer +n` | behavior.test `tangential`/`radial inward` flow; e2e turn advances |
|
||
| 4 | Pressure causes an adaptation | Continue the S1 winning route to **turn 4**: producers starving on nutrient‑depleted tiles push the hunger track to 3 → **Dormancy unlocks** (event: `Lumiflora unlocked Dormancy`) | solver-fixtures `s1-heat exploitsAdaptation = true` |
|
||
| 5 | Adaptation benefit / cost / spillover | From turn 4 on, the event panel shows `hunger loss prevented (adapted)` (benefit) and dormant producers stop growing/migrating (cost); the hunger‑response spillover makes dormant producers inedible to predators | behavior.test `dormancy`; `consequence`/`evolution` events |
|
||
| 6 | Global pressure response strengthens a fixture | At turn 4 the **Hunger response** activates (event: `Hunger response active: Nutrient inlets add 1`); nutrient inlets thereafter add 1 instead of 2 | solver end state `environmentActive.hunger = true` |
|
||
| 7 | Ecosystem collapse / expiry + retry | Play the S1 **losing route** (`Inner cw × 8`) → turn limit **expired**; click **Retry** → turn resets to 0 | e2e `lose then retry via verified loss route` |
|
||
| 8 | Scenario win + preserved lineage choice | Complete the S1 **winning route** → objective achieved → **Lineage choice** screen offers to preserve Dormancy | e2e `full scenario 1 win … lineage choice` |
|
||
| 9 | Save & Quit | Click **Save & Quit** → returns to title; **Continue** becomes enabled | e2e `Save & Quit, reload, Continue` |
|
||
| 10 | Close / reopen | Reload the page (simulates tab close/reopen) | e2e reload step |
|
||
| 11 | Continue restores exact state | Click **Continue** → board and `Turn N` match the saved run exactly | e2e asserts `Turn 1` restored |
|
||
| 12 | Visible access to multiple scenarios | From the title choose **Replay Standalone** (or progress the campaign) → the scenario menu lists all unlocked scenarios | e2e campaign/menu flow |
|
||
|
||
## Notes
|
||
|
||
- The recording need not play all five scenarios (SPEC §16): automated tests prove all five are
|
||
winnable and that campaign victory is reachable (`test/campaign.test.ts`,
|
||
`test/solver-fixtures.test.ts`). The short route above concisely covers every required beat.
|
||
- To record an uncut take, screen‑capture the browser while performing the script; the outcome is
|
||
deterministic, so the take will match the verified events.
|