- Shipped
- September 8, 2026 at 6:52 PM UTC
- Author
- Kamo
- Commit
- ee8a2df
A settled pot draws the CONTESTED total now, not everything that went in. `hand.pot` keeps every chip that entered the hand; `totalPot` reports what was played for once the hand is complete, and on a hand taken down uncalled those differ — a raise to 600 that both blinds fold to puts 900 in, contests 500, and gives 400 back. The compact layout was drawing chips worth 900 under a figure of 500. That is the pot double-draw again in different clothes, and a nastier one: too MANY chips under a number reads as a rendering artefact, but too many chips is what the felt would have shown, and the arithmetic looks plausible either way. The felt already had the rule right and the rail did not, which is the real defect — one invariant expressed in two places will disagree, and this one had already started to. So it is a function both layouts call. `potChips.ts` says what belongs in the middle: the collected pot while the hand is live, because the bets on the felt are already drawn where the players pushed them; the contested total once it is settled, split per pot. Five tests, including the fold-out case, because it is the one nobody would look at twice. Found by the session working the event choreography, whose change made `totalPot` mean the contested figure. Verified in HoldemGameService:1174 rather than taken on report.