← Back to Pull requests

WIP: Play: a two-board table #2623

Open
ndelangen opened this pull request with 483 lines diff across 6 files
View on GitHub
ndelangen ndelangen commented on Oct 30, 2026 06:58 UTC
Author

Early work, parked to revisit later. Not meant to merge as is.

Why

On 2026-10-29 Norbert had a "completely crazy idea": playing Dune with more than one board, side by side, with one of them primary. This PR records where that exploration ended up.

How it got here

1. 2D prototypes (f17dfd0): four standalone table layouts to explore the option space. Later dropped.
2. 1 main board + up to 6 extras in the real 3D table (c0ea627, a11221e). Norbert sketched a system of up to 7 boards, with the extras at about ⅔ size in slots round the main board's upper half. It was built "for real": physics, camera, pings, and a ruleset slot with up to six boards.
3. One arc with curved joins (9b16309), then outlines that stay close to the boards (71b5f17), after feedback that it was "too curvy".
4. Pivot to exactly two boards (a258498 onwards). Norbert: "Supporting 2+ boards might just be too much, let's focus on 2 exactly, and provide an alternate table for exactly that purpose." Everything below implements that table, from his sketch:

<img src="https://github.com/ndelangen/dunezone/blob/f44efe5669c328b3905c2417684ac34648eea1ee/proof/two-board-table/sketch.png?raw=true" width="420" alt="Norbert's sketch of the two-board table">

What the two-board table does now

  • Layout: the second board is full size, left of the main board. The main board keeps the player stations.

  • Trackers: the Spice Bank, the turn disc and the phase discs run in one straight row along the table's top. The turn disc sits over the second board.

  • Tabs: four tabs run along the bottom, left to right: extras (the shared table inventory, 3×3 wells), Tleilaxu Tanks, Treachery (2×3) and Spice (2×3). This order is Norbert's.

  • One shape for everything: the outline is a signed-distance shape (src/shared/play/boardLayout.ts): a capsule round both boards, scallops round the tracker discs, and the tabs. It is traced into the drawn plate by marching squares. Drawing, where pieces may rest, clamping, camera zoom and fog, and pings all read that one shape.

  • Data:

  • - The durable table stores tableLayout: 'one-board' | 'two-boards'.
    - The snapshot carries secondBoard.
    - A ruleset's single Second board slot opens new games on this table. It replaces the earlier extraBoards slot, which only ever lived on this branch.
  • Layout-aware code:

  • - Physics and geometry take a layout argument.
    - Placement anchors, card bays, shared items, the Tanks label, the Spice Bank and the spice withdrawal use the layout's positions.
  • Camera:

  • - The map view centres a lopsided frame across the table.
    - The bottom view (B) takes in the whole table.
    - The left view (L) looks at the second board.
  • Story: Play/Boards › Two board table (pages-play-boards--two-board-table).
  • | Bottom view (B) | Top view (U) |
    | --- | --- |
    | <img src="https://github.com/ndelangen/dunezone/blob/f44efe5669c328b3905c2417684ac34648eea1ee/proof/two-board-table/bottom-view.png?raw=true" width="420"> | <img src="https://github.com/ndelangen/dunezone/blob/f44efe5669c328b3905c2417684ac34648eea1ee/proof/two-board-table/top-view.png?raw=true" width="420"> |

    Open when we pick this up

  • The default map view frames the boards only. The tabs run off the bottom edge, and a deck sits under the Controls/chat bar.

  • HMS plate riders on the second board still rest at table height (pointerRiders.ts takes no layout).

  • HandCounts and the homepage setup still use the standard table's bay positions.

  • The branch is far behind main and will need bringing up to date.

  • There are no unit tests yet for the two-board shape, anchors or physics. The existing 1296 tests pass.

  • Norbert hasn't given a product verdict on the direction yet.
  • ---
    _Generated by Claude Code_

    Diff: 483 lines (+362 / -121) across 6 files Reviewer: None requested Review duration: 54141m
    All Vouch review confidence checks passed
    Residual risk 0.41 = Change Risk (0.71) × (1 − Review Confidence (0.42)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.71 · 483 lines diff across 6 files
    0.71
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 10%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.370
    Shallow Review Depth shallow_review_depth
    0.344
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #2623"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    ndelangen ndelangen
    Labels
    risk: medium confidence: 42.2% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 71.3% (HIGH) · Higher = larger blast radius
    71.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 42.2% · Lower = rushed or shallow review
    42.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 41.2% · Moderate risk
    41.2%