# Board Layout — three interlocking 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. ## Why the obvious drawings fail 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. ## Requirements (binding) 1. Each loop is a **regular six-sided hexagon** (pointy-top), drawn as a stroked `` 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. ## 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). 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)`. ### Reference starting coordinates (viewBox 440×400, tune for legibility) 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. ## 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) ``` 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. ## 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.