91 lines
4.2 KiB
Markdown
91 lines
4.2 KiB
Markdown
# Board Layout — three concentric hexagonal rings
|
|
|
|
This document is the rendering reference for the Adaptive Loop board (SPEC §4
|
|
"Board topology and legal actions"). It prescribes **how to draw the board as
|
|
three concentric hexagonal rings connected by six radial gates**, not as a
|
|
network of connected spheres or a numbered wiring diagram.
|
|
|
|
## Topology (authoritative, from SPEC §4)
|
|
|
|
- **Inner ring** (radius 1): 6 tiles `I0..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.
|
|
- 36 tiles total. The outer ring has more tiles than the middle, which has more
|
|
than the inner.
|
|
|
|
Six **gates** `g0..g5` sit at the six hex vertices (clockwise from the top). A
|
|
tile is **on a gate** when its current ring position is that vertex:
|
|
|
|
- Inner: `I_g` is on gate `g` (every inner tile is always on a gate).
|
|
- Middle: `M_{2g}` is on gate `g` (every second middle tile).
|
|
- Outer: `O_{3g}` is on gate `g` (every third outer tile).
|
|
|
|
The three on-gate tiles at the same gate (inner + middle + outer) form a radial
|
|
channel. Rotating a ring shifts payloads around the track, so **which payloads
|
|
sit on the gates changes** — this is what reconnects the rings each turn.
|
|
|
|
## Requirements (binding)
|
|
|
|
1. Render the board as **three concentric hexagonal rings** of regular pointy-top
|
|
hex tiles, clearly nested around a common center.
|
|
2. Each ring has a **distinct color** (inner / middle / outer).
|
|
3. Draw the **six gates as luminous radial connectors** between the rings at the
|
|
six vertices, so the player can see which tiles are currently linked across
|
|
rings.
|
|
4. Keep the clockwise cyclic tile order per ring (`I0→I1→…`, `M0→M1→…`,
|
|
`O0→O1→…`) so rotation direction reads correctly.
|
|
5. Tiles are hexagonal nodes; label each with its ring index (`I0`, `M0`, `O0`).
|
|
On-gate tiles are visually emphasized (e.g., a gate-aligned glow).
|
|
|
|
## Construction (recommended)
|
|
|
|
Place the three rings concentrically. For a pointy-top hex grid, the tiles of
|
|
ring radius `r` lie on a hexagonal perimeter at distance `r·tileSpacing` from the
|
|
center, with:
|
|
|
|
- Inner `r=1`: 6 perimeter tiles at the 6 vertex directions.
|
|
- Middle `r=2`: 12 tiles — one at each vertex plus one midway along each edge.
|
|
- Outer `r=3`: 18 tiles — one at each vertex plus two along each edge.
|
|
|
|
Index each ring clockwise from the top vertex (`I0`, `M0`, `O0` at top). With this
|
|
construction the gate vertices line up exactly: the top vertex holds `I0`, `M0`,
|
|
`O0` (gate `g0`); the next vertex clockwise holds `I1`, `M2`, `O3` (gate `g1`);
|
|
and so on, matching the `M_{2g}` / `O_{3g}` gate rule.
|
|
|
|
Tile size may decrease slightly for the inner ring (fewer, larger tiles) and
|
|
increase count for the outer ring — whatever keeps all 36 tiles legible. The
|
|
implementer **must** visually/DOM-verify the result is three distinct nested
|
|
hexagonal rings with six clear radial gates and adjust spacing if any ring
|
|
collapses or overlaps illegibly.
|
|
|
|
## ASCII schematic (topology only — not to scale)
|
|
|
|
`` g0 (top)
|
|
I0 M0 O0
|
|
I5 I1
|
|
O17 M11 M1 O1
|
|
g5 ┌─────┬─────┬─────┐ g1
|
|
│ │ I·· │ │
|
|
O16 │ M10 │ │ M2 │ O2
|
|
│ │ │ │
|
|
g5 └─────┴─────┴─────┘ g1
|
|
O15 M9 M3 O3
|
|
I4 I2
|
|
I3 M6 O9
|
|
g3 (bottom)
|
|
|
|
gates g0..g5 at the 6 vertices connect I·/M·/O· on the same spoke
|
|
```
|
|
|
|
Each ring is a closed hexagon of tiles; the six gates are the radial spokes that
|
|
link the three rings. Rotation moves payloads around a ring; the gate spokes are
|
|
fixed in space, so rotation changes which tiles the spokes touch.
|
|
|
|
## Interaction note (see SPEC §13)
|
|
|
|
Selecting a rotation (focus/hover/tap) shows the preview and **enables Commit**;
|
|
the selection **persists** until the player commits, picks a different rotation,
|
|
or cancels (Escape). Do **not** clear the selection — and therefore do not grey
|
|
out Commit — when the pointer leaves the rotation control or focus moves to the
|
|
Commit button.
|