(Adaptive Loop) Prepare for Pass 3
This commit is contained in:
40 files changed
+242
-6229
No files matched your search
+151
-150
@@ -12,14 +12,16 @@ The game is successful only when it is playable from campaign start through camp
|
||||
|
||||
**Adaptive Loop** is a calm deterministic strategy puzzle set in a fictional microfluidic culture dish.
|
||||
|
||||
The player rotates overlapping six-chamber loops. A rotation does two things at once:
|
||||
The board is **three concentric hexagonal rings** — an outer ring, a middle ring, and an inner ring — each a closed loop of hex culture tiles. The player rotates a whole ring clockwise or counter-clockwise; the outer ring has more tiles than the inner ring. Six fixed **radial gates** connect the three rings at the hex vertices: when a tile from each ring sits on the same gate, they form a radial channel.
|
||||
|
||||
1. It moves chamber payloads.
|
||||
2. It changes which microfluidic loop owns shared chambers and therefore where nutrients and toxins flow.
|
||||
A rotation does two things at once:
|
||||
|
||||
The resulting tick resolves growth, feeding, migration, selective pressure, adaptation, and environmental fixtures in a fixed order. Species counter repeated strategies through visible adaptations. Every adaptation has a benefit, a cost, and ecological spillover. The player wins by provoking useful counter-adaptations, then exploiting their weaknesses.
|
||||
1. It moves that ring's tile payloads around the loop.
|
||||
2. It changes which tiles sit on the six gates, and therefore how nutrient and toxin flow inward and how organisms migrate between rings.
|
||||
|
||||
The intended feeling is precise, quiet, and legible: a scientific instrument that has become a tactical game.
|
||||
The resulting tick resolves flow, growth, feeding, migration, selective pressure, adaptation, and environmental fixtures in a fixed order. Species counter repeated strategies through visible adaptations. Every adaptation has a benefit, a cost, and ecological spillover. The player wins by provoking useful counter-adaptations, then exploiting their weaknesses.
|
||||
|
||||
The intended feeling is precise, quiet, and legible: a scientific instrument built from three turning glass rings.
|
||||
|
||||
## 3. Hard scope
|
||||
|
||||
@@ -53,72 +55,56 @@ The intended feeling is precise, quiet, and legible: a scientific instrument tha
|
||||
|
||||
## 4. Board topology and legal actions
|
||||
|
||||
The board has twelve chamber slots and three overlapping six-slot loops:
|
||||
The board is **three concentric hexagonal rings** of hex tiles, centered on a common point:
|
||||
|
||||
```text
|
||||
Loop A: [0, 1, 2, 3, 4, 5]
|
||||
Loop B: [2, 3, 6, 7, 8, 9]
|
||||
Loop C: [4, 5, 10, 11, 8, 9]
|
||||
|
||||
Loop arrays are listed in clockwise visual order. Clockwise rotation moves payload at array index `i` to `(i + 1) mod 6`. Counterclockwise rotation moves it to `(i + 5) mod 6`. For flow, “next” uses the same `+1` step for clockwise and `+5` step for counterclockwise.
|
||||
Inner ring (radius 1): 6 tiles — I0 I1 I2 I3 I4 I5 (I0 at top, clockwise)
|
||||
Middle ring (radius 2): 12 tiles — M0 .. M11 (M0 at top, clockwise)
|
||||
Outer ring (radius 3): 18 tiles — O0 .. O17 (O0 at top, clockwise)
|
||||
```
|
||||
|
||||
Shared chamber pairs:
|
||||
36 tiles total. Each ring is a closed cyclic loop. Tile order around a ring is the clockwise visual order starting from the top. **The outer ring has more tiles than the middle ring, which has more than the inner ring.**
|
||||
|
||||
- A/B share 2 and 3.
|
||||
- A/C share 4 and 5.
|
||||
- B/C share 8 and 9.
|
||||
### Six radial gates
|
||||
|
||||
Render these as three visibly interlocking hexagonal rings, not as a numbered debugging diagram.
|
||||
Six fixed **gates** sit at the six hex vertices (top, upper-right, lower-right, bottom, lower-left, upper-left), indexed `g0..g5` clockwise from the top. A tile is **on a gate** when its current ring position is that vertex:
|
||||
|
||||
There are exactly six gameplay actions:
|
||||
- Inner: `I_g` is on gate `g` (every inner tile is always on its gate).
|
||||
- Middle: `M_{2g}` is on gate `g` (every second middle tile is on a gate; the others are mid-arc).
|
||||
- Outer: `O_{3g}` is on gate `g` (every third outer tile is on a gate).
|
||||
|
||||
- Rotate A clockwise.
|
||||
- Rotate A counterclockwise.
|
||||
- Rotate B clockwise.
|
||||
- Rotate B counterclockwise.
|
||||
- Rotate C clockwise.
|
||||
- Rotate C counterclockwise.
|
||||
The three on-gate tiles at the same gate `g` (inner + middle + outer) form a **radial channel**. Tiles not on a gate are only connected tangentially within their ring.
|
||||
|
||||
### Render
|
||||
|
||||
Render the board as **three concentric hexagonal rings** of hex tiles (regular pointy-top hexagons), clearly nested, with the six gates drawn as luminous radial connectors between the rings at the vertices. Never render the board as a network of connected spheres or a numbered wiring diagram. Each ring has a distinct color (inner/middle/outer). The board is one SVG that scales to the viewport.
|
||||
|
||||
### Six legal actions
|
||||
|
||||
There are exactly six gameplay actions — rotate each ring clockwise or counter-clockwise:
|
||||
|
||||
- Rotate Inner clockwise / counter-clockwise.
|
||||
- Rotate Middle clockwise / counter-clockwise.
|
||||
- Rotate Outer clockwise / counter-clockwise.
|
||||
|
||||
No pass action exists.
|
||||
|
||||
A legal rotation:
|
||||
### What a rotation does
|
||||
|
||||
1. Cyclically permutes the six movable chamber payloads along that loop by one position.
|
||||
2. Does not move fixed fixtures or objective markers.
|
||||
3. Sets that loop's flow direction to the chosen direction.
|
||||
4. Assigns ownership of that loop's shared slots to the rotated loop.
|
||||
1. **Cyclically permutes** that ring's tile payloads by one position. Clockwise moves the payload at track index `i` to `(i + 1) mod size`; counter-clockwise moves it to `(i + size - 1) mod size`.
|
||||
2. Sets that ring's **direction** to the chosen direction.
|
||||
3. Does **not** move fixtures or objective markers (they stay attached to their tiles).
|
||||
|
||||
Each shared slot stores one owning loop. Initial ownership is alphabetical among loops containing it. A slot's outlet is the next slot on its owning loop in that loop's current direction. A non-shared slot is owned by its only loop.
|
||||
Because gate membership is by track index, rotating a ring changes **which payloads sit on the gates** — this reconnects the rings and is the core of every puzzle.
|
||||
|
||||
This ownership rule must materially change scenario solutions. The counterfactual proof uses normal payload permutation and loop-direction updates but freezes `sharedOwner` at the scenario baseline for every turn. At least one scenario must be solver-proven unwinnable under that counterfactual within its normal turn limit.
|
||||
### Legal/illegal
|
||||
|
||||
Actions in terminal states are rejected without changing domain state.
|
||||
- Actions in terminal states are rejected without changing domain state.
|
||||
- A rotation is always legal in a non-terminal state (there is no pass and no partial rotation).
|
||||
|
||||
### Board layout (rendering)
|
||||
### Board layout reference
|
||||
|
||||
Render the board as three **interlocking hexagonal rings**, never as a network of
|
||||
connected spheres or a numbered wiring diagram. Each loop is a regular
|
||||
six-sided hexagon (pointy-top), drawn as a stroked polygon with a distinct
|
||||
per-loop color (A, B, C). The three rings are arranged in a symmetric trefoil —
|
||||
their centers at the corners of an equilateral triangle — so each pair overlaps
|
||||
and the rings read as interlocked; at each of the six ring crossings apply a
|
||||
consistent over/under weave so no ring outline is broken.
|
||||
|
||||
Chambers are circular nodes placed **on the rings at the hexagon vertices**, in
|
||||
each loop's clockwise cyclic order (Loop A: 0→1→2→3→4→5; Loop B: 2→3→6→7→8→9;
|
||||
Loop C: 4→5→10→11→8→9). A shared chamber belongs to two rings; render it **once**,
|
||||
positioned at the overlap of its two loops, and route both ring outlines through
|
||||
that node so the shared slot is a single visible chamber. Label each chamber with
|
||||
its slot index and mark shared chambers with the loops that own them. A reference
|
||||
coordinate construction (centers, radius, per-slot coordinates) and an ASCII map
|
||||
are provided in `docs/board-layout.md`; the implementer may nudge coordinates for
|
||||
legibility as long as each loop remains a clear hexagon, shared chambers render
|
||||
once at the overlaps, and the cyclic vertex order above is preserved.
|
||||
|
||||
Rotation moves payloads along the chosen loop's cyclic vertex order; channel-flow
|
||||
arrows are drawn along the owner loop's edges in its current direction. The board
|
||||
is one SVG that scales to the viewport.
|
||||
A reference coordinate construction (tile centers per ring, gate connector geometry) and an ASCII schematic are provided in `docs/board-layout.md`. The implementer may nudge coordinates for legibility as long as the board reads as three nested hexagonal rings, the six gates sit at the vertices, and the cyclic tile order above is preserved.
|
||||
|
||||
## 5. Domain model
|
||||
|
||||
@@ -127,7 +113,7 @@ Use serializable plain data. Keep UI animation, hover, focus, wall-clock time, a
|
||||
A compatible model includes:
|
||||
|
||||
```ts
|
||||
type LoopId = "A" | "B" | "C";
|
||||
type RingId = "inner" | "middle" | "outer";
|
||||
type Direction = "cw" | "ccw";
|
||||
type LineageId = "producer" | "grazer";
|
||||
type PressureId = "heat" | "hunger" | "toxin" | "immunity";
|
||||
@@ -143,6 +129,8 @@ type Chamber = {
|
||||
phage: number; // 0..6
|
||||
};
|
||||
|
||||
type Ring = { direction: Direction; tiles: Chamber[] }; // tiles in clockwise track order; tiles[0] at top
|
||||
|
||||
type Lineage = {
|
||||
pressure: Record<PressureId, number>; // 0..3
|
||||
unlocked: Record<PressureId, boolean>;
|
||||
@@ -153,9 +141,7 @@ type GameState = {
|
||||
mode: Mode;
|
||||
scenarioId: string;
|
||||
turn: number;
|
||||
loops: Record<LoopId, { direction: Direction }>;
|
||||
sharedOwner: Record<string, LoopId>;
|
||||
chambers: Chamber[];
|
||||
rings: Record<RingId, Ring>;
|
||||
lineage: Record<LineageId, Lineage>;
|
||||
inheritedAtStart: Record<LineageId, PressureId[]>;
|
||||
consecutiveObjectiveTurns: number;
|
||||
@@ -166,6 +152,8 @@ type GameState = {
|
||||
};
|
||||
```
|
||||
|
||||
Gate membership is **derived** from track index (inner `tiles[g]`, middle `tiles[2g]`, outer `tiles[3g]`), so it is never stored separately and is always consistent with the rings.
|
||||
|
||||
All capped quantities use integer clamp `0..6`. Pressure tracks use `0..3`. Overflow is discarded and must be shown in previews/event attribution.
|
||||
|
||||
The transition must not mutate its input.
|
||||
@@ -174,9 +162,9 @@ Canonical equality means deep equality after stable-key JSON serialization of do
|
||||
|
||||
## 6. Organisms and fixtures
|
||||
|
||||
### Movable chamber values
|
||||
### Movable tile values
|
||||
|
||||
| ID | Name direction | Food | Base rule |
|
||||
| ID | Name | Food | Base rule |
|
||||
|---|---|---|---|
|
||||
| producer | Agent may choose a memorable fictional species name | nutrient | If population and nutrient are present, consume 1 nutrient and gain 1 population. |
|
||||
| grazer | Agent may choose a memorable fictional species name | producer | Remove 1 edible producer and gain 1 grazer. |
|
||||
@@ -186,14 +174,14 @@ Producer and grazer are persistent campaign lineages. Phage is not.
|
||||
|
||||
### Fixed fixtures
|
||||
|
||||
Fixtures stay attached to board slots when chambers rotate.
|
||||
Fixtures stay attached to tiles when rings rotate.
|
||||
|
||||
- **Nutrient inlet:** add 2 nutrient.
|
||||
- **Heat source:** add 2 heat.
|
||||
- **Toxin inlet:** add 2 toxin.
|
||||
- **Drain:** remove 2 toxin.
|
||||
- **Immune node:** selects and damages producer/grazer exactly once through the Section 8 immunity algorithm.
|
||||
- **Objective marker:** no simulation effect; marks a target slot.
|
||||
- **Objective marker:** no simulation effect; marks a target tile.
|
||||
|
||||
Fixtures may coexist only when explicitly defined by scenario data.
|
||||
|
||||
@@ -201,20 +189,21 @@ Fixtures may coexist only when explicitly defined by scenario data.
|
||||
|
||||
`nextState(state, rotationAction)` executes exactly this order:
|
||||
|
||||
1. **Rotate and reconnect**
|
||||
- Move chamber payloads.
|
||||
- Update selected loop direction.
|
||||
- Update shared-slot ownership.
|
||||
1. **Rotate**
|
||||
- Move the rotated ring's payloads.
|
||||
- Update that ring's direction.
|
||||
- (Gate membership is derived; it updates implicitly.)
|
||||
|
||||
2. **Channel flow**
|
||||
2. **Channel flow** — resources move tangentially around each ring and inward through gates.
|
||||
- Snapshot all nutrient/toxin values at phase start.
|
||||
- Every chamber with nutrient sends 1 nutrient through its outlet; every chamber with toxin sends 1 toxin.
|
||||
- **Tangential:** every tile with nutrient sends 1 nutrient to the next tile in its own ring's current direction; same for toxin.
|
||||
- **Radial (inward through gates):** for each gate `g`, the outer on-gate tile sends 1 nutrient to the middle on-gate tile; the middle on-gate tile sends 1 nutrient to the inner on-gate tile. Same for toxin.
|
||||
- For each value, commit `clamp(start - sent + sum(received), 0, 6)` simultaneously.
|
||||
- Discarded overflow is attributed.
|
||||
|
||||
3. **Producer growth**
|
||||
- Snapshot this phase after flow.
|
||||
- Process chambers in ascending slot order.
|
||||
- Process tiles in a fixed deterministic order (outer, then middle, then inner; each in track order).
|
||||
- Each occupied producer colony with nutrient consumes 1 nutrient.
|
||||
- It normally gains 1 producer.
|
||||
- A locally active trait cost may suppress reproduction or impose its defined payment.
|
||||
@@ -222,14 +211,16 @@ Fixtures may coexist only when explicitly defined by scenario data.
|
||||
4. **Biological interactions**
|
||||
- Run a grazer subphase, then a phage subphase.
|
||||
- Each subphase reads a snapshot taken after the prior subphase and commits simultaneously.
|
||||
- Feeding is **local to a tile** (a grazer eats producers on its own tile; a phage eats grazers on its own tile).
|
||||
- Each occupied grazer colony may consume one edible local producer and gain one grazer.
|
||||
- Each occupied phage colony may consume one edible local grazer and gain one phage; otherwise it loses one phage.
|
||||
- Current base feeding is local, so no two chambers contend for the same prey.
|
||||
|
||||
5. **Migration**
|
||||
5. **Migration** — organisms chase food tangentially around a ring and radially through gates.
|
||||
- Run producer, grazer, then phage migration subphases.
|
||||
- Each species subphase reads a fresh snapshot after the prior species committed.
|
||||
- A source population of at least 2 sends one unit through its outlet only when destination food is strictly greater than source food.
|
||||
- A source population of at least 2 sends one unit **one step** toward strictly-greater food. A step is either:
|
||||
- **Tangential:** to the next tile in the source tile's ring direction, or
|
||||
- **Radial:** through a gate, to the on-gate tile in the adjacent ring (outer↔middle, middle↔inner), only when the source tile is itself on that gate.
|
||||
- Producer food is nutrient; grazer food is producer; phage food is grazer.
|
||||
- Within each species subphase, commit aggregate transfers simultaneously as `clamp(start - sent + sum(received), 0, 6)` and attribute overflow.
|
||||
|
||||
@@ -240,15 +231,15 @@ Fixtures may coexist only when explicitly defined by scenario data.
|
||||
|
||||
7. **Fixtures, exposure, and pressure consequences**
|
||||
- Apply nutrient inlets: +2 normally, +1 while Hunger Response is active.
|
||||
- Apply heat sources: +2 normally, +3 while Heat Response is active; then reduce every chamber's heat by 1.
|
||||
- Apply heat sources: +2 normally, +3 while Heat Response is active; then reduce every tile's heat by 1.
|
||||
- Apply toxin inlets: +2 normally, +3 while Toxin Response is active.
|
||||
- Apply drains: toxin -2.
|
||||
- Resolve the single immunity algorithm defined in Section 8; immune damage is 2 normally or 3 while Immunity Response is active.
|
||||
- Snapshot heat, hunger, toxin, and immunity qualification plus occupied populations after fixtures and immune target selection.
|
||||
- Increment global lineage pressure tracks from that snapshot before applying population consequences.
|
||||
- Resolve heat, hunger, toxin, then immunity consequences in that order.
|
||||
- At the start of each pressure subphase, skip a lineage/chamber whose current population is already zero, even if it qualified in the exposure snapshot.
|
||||
- Toxin carrier payments process producer then grazer in each chamber; each pays from current nutrient, so later lineages lose population when earlier payment exhausted it.
|
||||
- At the start of each pressure subphase, skip a lineage/tile whose current population is already zero, even if it qualified in the exposure snapshot.
|
||||
- Toxin carrier payments process producer then grazer on each tile; each pays from current nutrient, so later lineages lose population when earlier payment exhausted it.
|
||||
- Apply adapted heat/toxin spillover only after both lineages' carrier consequences for that pressure.
|
||||
|
||||
8. **Outcome and turn finalization**
|
||||
@@ -264,7 +255,7 @@ The implementation may represent events separately from canonical state, but eve
|
||||
|
||||
## 8. Selective pressure and adaptations
|
||||
|
||||
Each lineage has four global tracks. A track gains exactly +1 on a turn if that lineage occupied at least one qualifying chamber in the exposure snapshot. Multiple qualifying chambers do not accelerate a track. Tracks cap at 3. During the following turn's evolution phase, the lineage trait unlocks and the matching global environmental response activates.
|
||||
Each lineage has four global tracks. A track gains exactly +1 on a turn if that lineage occupied at least one qualifying tile in the exposure snapshot. Multiple qualifying tiles do not accelerate a track. Tracks cap at 3. During the following turn's evolution phase, the lineage trait unlocks and the matching global environmental response activates.
|
||||
|
||||
| Pressure | Local qualifying condition | Unadapted effect | Adapted benefit | Carrier cost | Spillover | Global response |
|
||||
|---|---|---|---|---|---|---|
|
||||
@@ -275,8 +266,8 @@ Each lineage has four global tracks. A track gains exactly +1 on a turn if that
|
||||
|
||||
### Immunity algorithm
|
||||
|
||||
1. During biological interactions, an unlocked Cloak is locally active whenever its carrier occupies an immune-node chamber. A predator feeding on that cloaked prey removes 2 prey instead of 1; this is the carrier cost.
|
||||
2. During fixtures, inspect current populations at each immune node in ascending slot order.
|
||||
1. During biological interactions, an unlocked Cloak is locally active whenever its carrier occupies an immune-node tile. A predator feeding on that cloaked prey removes 2 prey instead of 1; this is the carrier cost.
|
||||
2. During fixtures, inspect current populations at each immune node in fixed deterministic tile order.
|
||||
3. Eligible targets are occupied producer/grazer lineages without unlocked Cloak. Choose largest population; tie chooses producer.
|
||||
4. If no eligible lineage exists, the node does nothing. Otherwise record the selected lineage as immunity-qualified, attribute any retargeting caused by Cloak as spillover, and schedule exactly one immune damage event.
|
||||
5. Pressure tracks use the recorded selection snapshot. During the later immunity consequence subphase, apply the scheduled damage only if that target still has population; never apply a second immune loss.
|
||||
@@ -284,101 +275,103 @@ Each lineage has four global tracks. A track gains exactly +1 on a turn if that
|
||||
Rules:
|
||||
|
||||
- Global unlock does not mean always active. Heat, Hunger, and Toxin traits activate only under their qualifying condition. Cloak activates locally at immune nodes.
|
||||
- Each effect applies once per lineage per chamber per phase.
|
||||
- Each effect applies once per lineage per tile per phase.
|
||||
- Population loss floors at zero.
|
||||
- Environment response flags reset at scenario start even when traits are inherited; pressure can reactivate them.
|
||||
- UI must attribute unlock, local activation, prevented loss, paid cost, spillover, and global response with text plus visual encoding.
|
||||
- “Avoid an adaptation” means win a relevant pressure scenario while the matching trait remains locked (its track never enters an evolution phase at 3).
|
||||
- "Avoid an adaptation" means win a relevant pressure scenario while the matching trait remains locked (its track never enters an evolution phase at 3).
|
||||
- At least one solver route must deliberately provoke and exploit a trait; another must satisfy the defined avoidance condition.
|
||||
|
||||
## 9. Scenario contracts
|
||||
|
||||
Scenario definitions are immutable declarative data. Sparse chamber notation below is:
|
||||
Scenario definitions are immutable declarative data. Sparse tile notation below is:
|
||||
|
||||
```text
|
||||
slot: nutrient / producer / grazer / phage / heat / toxin
|
||||
tile: nutrient / producer / grazer / phage / heat / toxin
|
||||
```
|
||||
|
||||
Omitted slots and omitted values are zero. All loops initially clockwise. Shared-slot ownership uses alphabetical default.
|
||||
Tiles use the ring labels `I#`, `M#`, `O#` (Section 4). Omitted tiles and omitted values are zero. All rings initially clockwise.
|
||||
|
||||
Universal collapse is total producer + grazer = 0. Universal terminal precedence is collapse, then win, then turn-limit expiration.
|
||||
|
||||
The autonomous implementation must build a bounded deterministic solver or state-space search that proves at least one winning sequence and one losing sequence for each baseline scenario. Store those sequences as test fixtures and use them to generate `RECORDING.md`. It must also verify every campaign inheritance combination reachable from prior scenarios. If a scenario is impossible or trivial, the agent may adjust only starting populations/resources, fixture locations, or numeric objective thresholds by at most 1 per tuning pass. It must document every adjustment and rerun all solver tests. Board topology, turn order, caps, trait semantics, and objective type may not change.
|
||||
The autonomous implementation must build a bounded deterministic solver or state-space search that proves at least one winning sequence and one losing sequence for each baseline scenario. Store those sequences as test fixtures and use them to generate `RECORDING.md`. It must also verify every campaign inheritance combination reachable from prior scenarios. If a scenario is impossible or trivial, the agent may adjust only starting populations/resources, fixture locations, or numeric objective thresholds by at most 1 per tuning pass. It must document every adjustment and rerun all solver tests. Board topology (three concentric rings + six gates), turn order, caps, trait semantics, and objective type may not change.
|
||||
|
||||
The five scenarios below are concrete targets. The implementer must solver-verify each and apply the documented §9 tuning budget as needed.
|
||||
|
||||
### Scenario 1 — Heat: Cultivation Quota
|
||||
|
||||
- Turn limit: 8.
|
||||
- Fixtures: nutrient inlets at 1 and 7; heat sources at 3 and 9.
|
||||
- Fixtures: nutrient inlets at `O0` and `O6`; heat sources at `O3` and `O9`.
|
||||
- Start:
|
||||
- `0: 3/2/0/0/0/0`
|
||||
- `6: 3/2/0/0/0/0`
|
||||
- `10: 2/1/0/0/0/0`
|
||||
- `4: 1/0/0/0/0/0`
|
||||
- Win: producer at slot 11 ≥ 5 and total producer ≥ 12.
|
||||
- Teaches: rotation, ownership, flow, growth, preview, first visible pressure.
|
||||
- `O0: 3/2/0/0/0/0`
|
||||
- `O6: 3/2/0/0/0/0`
|
||||
- `M2: 2/1/0/0/0/0`
|
||||
- `I0: 1/0/0/0/0/0`
|
||||
- Win: producer at `I0` ≥ 4 and total producer ≥ 12.
|
||||
- Teaches: ring rotation, gate alignment, inward nutrient flow, growth, preview, and the first pressure: heat.
|
||||
|
||||
### Scenario 2 — Hunger: Endurance
|
||||
|
||||
- Turn limit: 10.
|
||||
- Fixtures: nutrient inlet at 0.
|
||||
- Fixtures: nutrient inlet at `O0`.
|
||||
- Start:
|
||||
- `1: 2/3/0/0/0/0`
|
||||
- `5: 1/2/1/0/0/0`
|
||||
- `7: 2/3/1/0/0/0`
|
||||
- `10: 0/2/2/0/0/0`
|
||||
- `O0: 2/3/0/0/0/0`
|
||||
- `M2: 1/2/1/0/0/0`
|
||||
- `M8: 2/3/1/0/0/0`
|
||||
- `I4: 0/2/2/0/0/0`
|
||||
- Win when `resolvedTurn === 10` and:
|
||||
- total producer ≥ 8;
|
||||
- total grazer ≥ 4;
|
||||
- producer occupies at least 3 chambers;
|
||||
- grazer occupies at least 2 chambers.
|
||||
- Teaches: competition, migration, dormancy, deliberate denial of predator food.
|
||||
- producer occupies at least 3 tiles;
|
||||
- grazer occupies at least 2 tiles.
|
||||
- Teaches: competition, migration through gates, dormancy, deliberate denial of predator food.
|
||||
|
||||
### Scenario 3 — Toxin: Cleansing
|
||||
|
||||
- Turn limit: 9.
|
||||
- Fixtures: nutrient inlet at 1; toxin inlets at 3 and 9; drains at 5 and 11.
|
||||
- Fixtures: nutrient inlet at `O0`; toxin inlets at `O3` and `O9`; drains at `I1` and `I3`.
|
||||
- Start:
|
||||
- `0: 3/3/0/0/0/0`
|
||||
- `3: 0/0/0/0/0/2`
|
||||
- `6: 2/3/0/0/0/0`
|
||||
- `9: 0/0/0/0/0/2`
|
||||
- `10: 2/2/1/0/0/0`
|
||||
- `O0: 3/3/0/0/0/0`
|
||||
- `O3: 0/0/0/0/0/2`
|
||||
- `M4: 2/3/0/0/0/0`
|
||||
- `O9: 0/0/0/0/0/2`
|
||||
- `I5: 2/2/1/0/0/0`
|
||||
- Win when `resolvedTurn` is 6 through 9, total toxin ≤ 2, and total producer + grazer ≥ 8.
|
||||
- Teaches: routing contaminants, resistance payment, shared detoxification spillover.
|
||||
- Teaches: routing contaminants inward to drains, resistance payment, shared detoxification spillover.
|
||||
|
||||
### Scenario 4 — Immunity: Escort
|
||||
|
||||
- Turn limit: 8.
|
||||
- Fixtures: nutrient inlets at 0 and 8; immune nodes at 2, 4, and 6; sanctuary objective marker at 11.
|
||||
- Fixtures: nutrient inlets at `O0` and `O2`; immune nodes at `I1` and `I3`; sanctuary objective marker at `I0`.
|
||||
- Start:
|
||||
- `1: 2/3/0/0/0/0`
|
||||
- `5: 2/3/2/0/0/0`
|
||||
- `7: 0/0/0/1/0/0`
|
||||
- `9: 1/0/2/1/0/0`
|
||||
- Win: grazer at 11 ≥ 3, phage at 11 ≥ 1, and total producer ≥ 6.
|
||||
- `M2: 2/3/0/0/0/0`
|
||||
- `M8: 2/3/2/0/0/0`
|
||||
- `O5: 0/0/0/1/0/0`
|
||||
- `O11: 1/0/2/1/0/0`
|
||||
- Win: grazer at `I0` ≥ 3 and total producer ≥ 6.
|
||||
- Teaches: immune targeting, cloak, retargeting spillover, predator vulnerability.
|
||||
|
||||
### Scenario 5 — Convergence: Stable Equilibrium
|
||||
|
||||
- Turn limit: 12.
|
||||
- Fixtures:
|
||||
- nutrient inlets at 0 and 6;
|
||||
- heat sources at 2 and 8;
|
||||
- toxin inlet at 3;
|
||||
- drain at 9;
|
||||
- immune nodes at 4 and 10;
|
||||
- assay objective markers at 1, 7, and 11.
|
||||
- nutrient inlets at `O0` and `O6`;
|
||||
- heat sources at `O3` and `O9`;
|
||||
- toxin inlet at `O2`;
|
||||
- drain at `I3`;
|
||||
- immune node at `I2`;
|
||||
- assay objective markers at `I0`, `M0`, `O0` (a vertical spoke through gate 0).
|
||||
- Start:
|
||||
- `0: 3/3/0/0/0/0`
|
||||
- `3: 0/0/0/0/0/2`
|
||||
- `5: 2/2/1/0/0/0`
|
||||
- `6: 3/2/0/0/0/0`
|
||||
- `8: 0/0/0/0/2/0`
|
||||
- `9: 0/0/0/0/0/1`
|
||||
- `10: 2/2/2/1/0/0`
|
||||
- `O0: 3/3/0/0/0/0`
|
||||
- `O2: 0/0/0/0/0/2`
|
||||
- `M2: 2/2/1/0/0/0`
|
||||
- `O6: 3/2/0/0/0/0`
|
||||
- `O8: 0/0/0/0/2/0`
|
||||
- `I3: 0/0/0/0/0/1`
|
||||
- `M8: 2/2/2/1/0/0`
|
||||
- Sustained predicate:
|
||||
- every assay marker contains producer + grazer ≥ 2;
|
||||
- total producer is 8 through 14;
|
||||
- the three assay tiles (`I0`, `M0`, `O0`) each contain producer + grazer ≥ 1;
|
||||
- total producer is 8 through 16;
|
||||
- total grazer is 3 through 7;
|
||||
- total phage ≤ 3;
|
||||
- total toxin ≤ 6.
|
||||
@@ -444,9 +437,9 @@ Hover, focus, or touch-selecting a rotation shows an exact one-turn preview prod
|
||||
|
||||
Preview must show:
|
||||
|
||||
- chamber destinations;
|
||||
- updated channel direction and shared ownership;
|
||||
- nutrient/toxin flow arrows;
|
||||
- tile payload destinations (which tile each payload lands on);
|
||||
- updated ring directions and the resulting gate alignment;
|
||||
- tangential and inward-radial flow arrows;
|
||||
- exact population/resource deltas;
|
||||
- overflow discarded;
|
||||
- pressure increments;
|
||||
@@ -463,24 +456,32 @@ The event panel should explain the tick in phase order. It must be concise enoug
|
||||
### Visual world
|
||||
|
||||
- Dark laboratory glass and restrained near-black background.
|
||||
- Luminous culture chambers with crisp borders.
|
||||
- Three concentric luminous glass rings with crisp beveled hex tiles; the six gates read as luminous radial connectors.
|
||||
- Microfluidic channels read as instrument paths, not fantasy pipes.
|
||||
- Species use shape + short label + color.
|
||||
- Four pressures use distinct iconography/pattern plus color.
|
||||
- Motion is subtle and causal: rotation, flow pulse, growth/decline, trait activation.
|
||||
- No generic dashboard card grid, excessive gradients, stock icons, or decorative particle noise.
|
||||
- Motion is subtle and causal: ring rotation, inward flow pulse, growth/decline, trait activation.
|
||||
|
||||
### Entity art (procedural SVG — intricate, not primitive)
|
||||
|
||||
Species and fixtures must be **distinct, detailed procedural SVG glyphs** — more intricate than a plain circle or square. Each species uses **shape + short label + color**; each pressure uses **distinct iconography + color**. Reference designs (the implementer may elaborate while keeping them legible at tile size):
|
||||
|
||||
- **Producer — "Lumiflora" (photosynthetic diatom):** a 6-petal / double-triangular flower or diatom — nested rotated ellipses forming a petal ring around a bright chloroplast center. Green family.
|
||||
- **Grazer — "Vellea" (ciliated crescent):** a segmented crescent body with 3 pairs of cilia/leg strokes along one edge and a small mouth notch. Amber family.
|
||||
- **Phage:** a classic lunar-lander virus — a hexagonal/icosahedral capsid head on 6 leg spikes with base pins. Pink family.
|
||||
- **Nutrient inlet:** a pipette/valve dropping a bead. **Heat source:** a coiled filament radiating warm rays. **Toxin inlet:** a dropper of greenish droplet. **Drain:** a funnel siphon. **Immune node:** a sentinel eye/lens. **Objective marker:** a targeting reticle.
|
||||
- **Pressures (iconography + color):** Heat = radiating sun rays (warm), Hunger = waning crescent (violet), Toxin = skull-and-drop (green), Immunity = shield (cyan).
|
||||
- **Tile state:** nutrient as a blue liquid level at the tile base; toxin as a greenish level; heat as a warm rim glow; adapted state as a ring/border treatment plus a `✓`-style tag in addition to color.
|
||||
|
||||
Avoid generic dashboard card grids, excessive gradients, stock icons, or decorative particle noise. Never encode by color alone.
|
||||
|
||||
### Layout
|
||||
|
||||
Desktop:
|
||||
|
||||
- Center: SVG culture board.
|
||||
- Center: SVG culture board (three concentric rings).
|
||||
- Left or upper rail: scenario objective, turn, campaign state.
|
||||
- Right or lower rail: pressure tracks, lineage traits, exact preview/event log.
|
||||
- Persistent controls: menu, Save & Quit, retry where relevant, help/legend.
|
||||
|
||||
Narrow viewport:
|
||||
|
||||
- Board remains primary.
|
||||
- Information rails stack below.
|
||||
- No horizontal page scrolling.
|
||||
@@ -488,16 +489,16 @@ Narrow viewport:
|
||||
|
||||
### Input
|
||||
|
||||
- Pointer/touch: select loop and direction, preview, then commit. Selecting a rotation (focus/hover/tap) shows the preview and **enables Commit**; the selection **persists** until the player commits, selects a different rotation, or cancels (Escape). Never disable Commit merely because the pointer leaves the rotation control or focus moves to the Commit button — that makes the enabled-while-hovered button grey out the moment the player goes to press it.
|
||||
- Keyboard: focusable controls for each loop direction; Enter/Space commits; Escape cancels preview.
|
||||
- Pointer/touch: select ring and direction, preview, then commit. Selecting a rotation (focus/hover/tap) shows the preview and **enables Commit**; the selection **persists** until the player commits, selects a different rotation, or cancels (Escape). Never disable Commit merely because the pointer leaves the rotation control or focus moves to the Commit button.
|
||||
- Keyboard: focusable controls for each ring direction; Enter/Space commits; Escape cancels preview.
|
||||
- Visible focus on every actionable control.
|
||||
- No hover-only information.
|
||||
|
||||
### Accessibility
|
||||
|
||||
- Semantic headings and landmarks.
|
||||
- Semantic headings and landmarks; an `h1` per view.
|
||||
- Real buttons for actions.
|
||||
- Accessible names include loop, direction, and predicted high-level result.
|
||||
- Accessible names include ring, direction, and predicted high-level result.
|
||||
- Live region announces committed turn result and terminal outcomes.
|
||||
- Text/symbols supplement every color encoding.
|
||||
- Contrast meets WCAG AA for normal text and controls.
|
||||
@@ -542,7 +543,7 @@ The run must complete gates in order. A failing gate blocks later work except th
|
||||
|
||||
### Gate 2 — complete Scenario 1
|
||||
|
||||
- Board rotations move chambers and reconnect channels.
|
||||
- Ring rotations move tiles and reconnect gates.
|
||||
- Preview equals commit.
|
||||
- Heat scenario has playable win, collapse, expiration, and retry.
|
||||
- Save/reload preserves exact state.
|
||||
@@ -551,9 +552,9 @@ The run must complete gates in order. A failing gate blocks later work except th
|
||||
|
||||
Literal worked tests cover:
|
||||
|
||||
- both directions for all loops;
|
||||
- shared-slot ownership;
|
||||
- flow contention and overflow;
|
||||
- both directions for all three rings;
|
||||
- gate alignment after rotation;
|
||||
- tangential and inward-radial flow, contention, and overflow;
|
||||
- population/resource caps;
|
||||
- every pipeline phase;
|
||||
- all four adaptations including benefit/cost/spillover;
|
||||
@@ -567,7 +568,7 @@ Literal worked tests cover:
|
||||
|
||||
- Solver or bounded search proves and stores one winning and one losing route for each baseline scenario.
|
||||
- Every reachable campaign inheritance set can complete subsequent scenarios.
|
||||
- At least one route requires shared-slot ownership changes.
|
||||
- At least one route requires a gate-alignment change to route flow or migration between rings.
|
||||
- At least one route exploits an adaptation.
|
||||
- At least one route avoids an adaptation.
|
||||
|
||||
@@ -586,7 +587,7 @@ Against the production build, public controls only:
|
||||
|
||||
- start a campaign;
|
||||
- preview and commit a rotation;
|
||||
- observe movement plus channel flow interaction;
|
||||
- observe tile movement plus tangential/radial flow interaction;
|
||||
- trigger and visibly attribute an adaptation benefit, cost, and spillover;
|
||||
- trigger a global pressure response and observe its strengthened fixture effect;
|
||||
- lose, retry, then win;
|
||||
@@ -622,7 +623,7 @@ One continuous take should be short but show:
|
||||
|
||||
1. Title/campaign start.
|
||||
2. Exact preview of a rotation.
|
||||
3. Rotation causing both chamber movement and channel flow.
|
||||
3. Rotation causing both tile movement and (tangential or radial) flow.
|
||||
4. Pressure causing a species adaptation.
|
||||
5. The adaptation's benefit, cost, and spillover.
|
||||
6. Global pressure response strengthening an environmental fixture.
|
||||
@@ -662,7 +663,7 @@ Adaptive Loop is complete only when:
|
||||
- five scenarios are playable;
|
||||
- campaign and standalone modes work;
|
||||
- win and both loss types work;
|
||||
- two or more systems visibly interact;
|
||||
- two or more systems visibly interact (rings + gates + adaptations);
|
||||
- adaptation benefit/cost/spillover is playable and visible;
|
||||
- deterministic preview, replay, and persistence are proven;
|
||||
- scenario solver routes and browser tests pass;
|
||||
|
||||
Reference in new issue
Block a user