(Adaptive Loop) Prepare for Pass 3
This commit is contained in:
40 files changed
+242
-6229
No files matched your search
@@ -1,88 +1,85 @@
|
||||
# Board Layout — three interlocking hexagonal rings
|
||||
# Board Layout — three concentric hexagonal rings
|
||||
|
||||
This document is the rendering reference for the Adaptive Loop board (SPEC §4
|
||||
"Board layout (rendering)"). The topology (12 slots, 3 loops, 6 shared slots) is
|
||||
authoritative and unchanged; this file prescribes **how to draw it as three
|
||||
interlocking hexagonal rings**, not as a network of connected spheres or a
|
||||
numbered wiring diagram.
|
||||
"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.
|
||||
|
||||
## Why the obvious drawings fail
|
||||
## Topology (authoritative, from SPEC §4)
|
||||
|
||||
The three loops pairwise share *edges* (A∩B = slots {2,3}; A∩C = {4,5};
|
||||
B∩C = {8,9}). In a flat hexagonal *tiling*, three mutually edge-adjacent hexagons
|
||||
meet at a single triple vertex and yield only 4 shared vertices — not the 6 this
|
||||
topology requires. So the board **cannot** be drawn as three regular hexagons
|
||||
that geometrically share edges in the plane. It must be drawn as three
|
||||
**interlocking rings** (like chain links): hexagonal outlines that overlap, with
|
||||
the six shared chambers sitting at the six overlap/crossing points.
|
||||
- **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. Each loop is a **regular six-sided hexagon** (pointy-top), drawn as a stroked
|
||||
`<polygon>` with a distinct per-loop color (A, B, C).
|
||||
2. The three rings are arranged in a **symmetric trefoil** (centers at the
|
||||
corners of an equilateral triangle) so each pair overlaps and the rings read
|
||||
as interlocked.
|
||||
3. At each of the six ring crossings use a consistent **over/under weave**
|
||||
(break one ring's stroke where the other passes over it) so no ring outline is
|
||||
visually broken and the "interlocking" reads clearly.
|
||||
4. 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 → 0`
|
||||
- Loop B: `2 → 3 → 6 → 7 → 8 → 9 → 2`
|
||||
- Loop C: `4 → 5 → 10 → 11 → 8 → 9 → 4`
|
||||
5. A shared chamber belongs to two rings; render it **once** and route **both**
|
||||
ring outlines through that single node (it is the visible overlap point).
|
||||
6. Label each chamber with its slot index; mark shared chambers with the loops
|
||||
that own them (e.g. `2 ⓪ⓑ`). Rotation moves payloads along the chosen loop's
|
||||
cyclic order above; channel-flow arrows are drawn along the owner loop's edges
|
||||
in its current direction.
|
||||
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)
|
||||
|
||||
Define the 12 chamber coordinates, then draw each loop as the polygon through its
|
||||
6 chambers in cyclic order. Because a shared chamber is one coordinate used by two
|
||||
loops' polygons, shared vertices **coincide by construction** and each loop is a
|
||||
genuine 6-gon. Place the chambers so the three resulting 6-gons form a clean
|
||||
trefoil (tune spacing/rotation until each ring reads as a distinct hexagon and
|
||||
the six shared nodes sit at clear crossings).
|
||||
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:
|
||||
|
||||
A pointy-top hexagon of radius `R` centered at `C` has vertex offsets (clockwise
|
||||
from top): `(0,-R)`, `(R·√3/2,-R/2)`, `(R·√3/2,R/2)`, `(0,R)`, `(-R·√3/2,R/2)`,
|
||||
`(-R·√3/2,-R/2)`.
|
||||
- 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.
|
||||
|
||||
### Reference starting coordinates (viewBox 440×400, tune for legibility)
|
||||
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.
|
||||
|
||||
Three pointy-top hexagons, `R = 68`, trefoil centers `A=(220,114)`,
|
||||
`B=(145,243)`, `C=(295,243)`. Generate each loop's six vertex positions from its
|
||||
center, assign chambers in the cyclic order above, then for the six **shared**
|
||||
chambers use a single coordinate at the overlap of the two loops that own them
|
||||
(the midpoint of the two loops' nearest vertices is a fine starting point; nudge
|
||||
so it lands on a clean crossing). Unique chambers keep their own vertex
|
||||
coordinates. The implementer **must** visually/DOM-verify the result is three
|
||||
distinct interlocking hexagons and adjust spacing if any ring collapses into a
|
||||
tangle.
|
||||
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)
|
||||
|
||||
`` Loop A
|
||||
0─────1
|
||||
/ \
|
||||
5 2 ──┐ shared A∩B
|
||||
│ C │ │
|
||||
4─────────3 │ Loop B
|
||||
\ │ / │
|
||||
11 10 6────7
|
||||
\ │ / │
|
||||
\ │ / │
|
||||
9─8 ──────┘ shared B∩C
|
||||
↑ ↑
|
||||
shared A∩C (4,5) and B∩C (8,9) and A∩B (2,3)
|
||||
`` 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 loop is a hexagon; shared slots (2,3 / 4,5 / 8,9) are the chambers where two
|
||||
rings cross. Draw rings as stroked hexagons with an over/under weave at these six
|
||||
crossings.
|
||||
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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user