Show each stack as the chips that make it #83

Closed
jheaps wants to merge 1 commits from fix/casino-holdem-stacks-in-chips into fix/casino-holdem-close-audit-blind-spots
Owner

The chip legend has only ever read chips into an amount — counting what's in front of somebody. Colouring up at the end of a level is the same question backwards, and it's the one the dealer answers with a rack in one hand: $205 is two hundreds and a five. So is counting a stack out for a player who's leaving. Stacked on #82.

The arithmetic already existed — payouts have been shown in chips since #73; this points the same function at the stacks.

Stacks in chips
  Ann — $205        2×$100, 1×$5
  Ben — $1,337      2×$500, 3×$100, 1×$25, 2×$5, 2×$1
  Cal — $40         1×$25, 3×$5
  Eve — $88         3×$25, 2×$5, 3×$1
  Fay — $500        1×$500

It sits under the chip legend, because that's where the denominations it works from are set, and it only appears when there's both a legend to work from and somebody with chips. A table that never set its chip colours up gets nothing, which is what it had before. A seat on zero is left out rather than listed as nothing.

Validation

Driven at five sizes across touch and pointer contexts, with a 26-character name and a $1,337,000 stack: no row spills, no page overflow, contrast clean, layout audit clean but for the landscape phone already documented in #63, no console errors. Every breakdown checked by hand against its total — 500+200+75+2 = 777, 1000+300+25+10+2 = 1337, and so on.

The breakdown itself is covered by the twelve tests from #73; what's new here is which seats are listed, which the browser run covers: with a legend and stacks it lists five of six seats, with the legend emptied it disappears, and with every stack zeroed it disappears. 269 tests still passing.

Also checked, nothing to fix

Counted the taps for a walk — the most frequent hand in a short-handed game. Deal, five folds, and a single "Award pot to Cal" button: seven taps with no pot wizard in the way. That flow is already as short as it should be.

The chip legend has only ever read chips *into* an amount — counting what's in front of somebody. **Colouring up at the end of a level is the same question backwards**, and it's the one the dealer answers with a rack in one hand: $205 is two hundreds and a five. So is counting a stack out for a player who's leaving. Stacked on #82. The arithmetic already existed — payouts have been shown in chips since #73; this points the same function at the stacks. ``` Stacks in chips Ann — $205 2×$100, 1×$5 Ben — $1,337 2×$500, 3×$100, 1×$25, 2×$5, 2×$1 Cal — $40 1×$25, 3×$5 Eve — $88 3×$25, 2×$5, 3×$1 Fay — $500 1×$500 ``` It sits under the chip legend, because that's where the denominations it works from are set, and it only appears when there's **both** a legend to work from and somebody with chips. A table that never set its chip colours up gets nothing, which is what it had before. A seat on zero is left out rather than listed as nothing. ## Validation Driven at five sizes across touch and pointer contexts, with a 26-character name and a $1,337,000 stack: no row spills, no page overflow, contrast clean, layout audit clean but for the landscape phone already documented in #63, no console errors. Every breakdown checked by hand against its total — 500+200+75+2 = 777, 1000+300+25+10+2 = 1337, and so on. The breakdown itself is covered by the twelve tests from #73; what's new here is *which seats are listed*, which the browser run covers: with a legend and stacks it lists five of six seats, with the legend emptied it disappears, and with every stack zeroed it disappears. 269 tests still passing. ## Also checked, nothing to fix Counted the taps for a walk — the most frequent hand in a short-handed game. Deal, five folds, and a single **"Award pot to Cal"** button: seven taps with no pot wizard in the way. That flow is already as short as it should be.
jheaps added 1 commit 2026-09-01 19:36:58 -06:00
The chip legend has only ever read chips *into* an amount -- counting what is in front
of somebody. Colouring up at the end of a level is the same question backwards, and it
is the one the dealer answers with a rack in one hand: $205 is two hundreds and a five.
So is counting a stack out for a player who is leaving.

The arithmetic already existed. Payouts have been shown in chips since #73; this points
the same function at the stacks.

  Stacks in chips
    Ann — $205        2×$100, 1×$5
    Ben — $1,337      2×$500, 3×$100, 1×$25, 2×$5, 2×$1
    Cal — $40         1×$25, 3×$5
    Eve — $88         3×$25, 2×$5, 3×$1
    Fay — $500        1×$500

Sits under the chip legend, because that is where the denominations it works from are
set, and it only appears when there is both a legend to work from and somebody with
chips. A table that never set its chip colours up gets nothing, which is what it had
before. A seat on zero is left out rather than listed as nothing.

Driven at five sizes across touch and pointer contexts, with a 26-character name and a
$1,337,000 stack: no row spills, no page overflow, contrast clean, layout audit clean
but for the landscape phone already known from #63, no console errors. Every breakdown
checked by hand against its total -- 500+200+75+2 = 777 and so on.

The breakdown itself is covered by the twelve tests from #73; what is new here is which
seats are listed, which the browser run covers: with a legend and stacks it lists five
of six seats, with the legend emptied it disappears, and with every stack zeroed it
disappears. 269 tests still passing.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015bnp7xKUPFFSpwkYNFaPgb
jheaps closed this pull request 2026-09-02 09:57:56 -06:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jheaps/JoshHeaps.Net#83