village-builder

VB-1837: Mend VB-1753’s review finding F1 (criterion, src/sim/opportunities.js:289)

Status: done (2026-11-26) Cause: VB-1753 Priority: 1 Size: S Design ref: VB-1753, criterion 1: A test (tests/played.js) lists every read of st.player in src/sim, each classed …; a new reader fails the check (ticked) Touches: sim/opportunities Goal: The defect the review of VB-1753 found and its revision left: opportunities.js round() reads who is played as const pl = view.player, played = !!pl && pl.pawn === p.id, where view is actorView(st) = st (opportunities.js:36). tests/played.js counts only the literal text st.player (reads(), the regex \bst.player\b), so this read is in neither KEPT nor RULES a Acceptance criteria:

Noted by VB-1753, 26 November 2026.

Notes: