Show the banker the amount to count out, not just whether the player is up #93
Closed
jheaps
wants to merge 1 commits from
fix/casino-holdem-chips-to-count-out into fix/casino-holdem-first-buy-in
pull from: fix/casino-holdem-chips-to-count-out
merge into: :fix/casino-holdem-first-buy-in
:master
:feature/socialism
:polish/holdem-seats-one-size
:fix/holdem-dealer-chip-eats-its-seat
:polish/holdem-game-night-ready
:polish/holdem-round-next
:polish/holdem-seat-collisions
:polish/holdem-offline-and-render
:fix/naming-a-blind-deals-the-hand
:release/casino-holdem-polish
:fix/casino-holdem-phone-look
:fix/casino-holdem-sidebar-crowding
:fix/casino-holdem-contribution-rule
:fix/casino-holdem-one-stack-rule
:fix/casino-holdem-default-stack-buyin
:feat/casino-holdem-waiting-list
:feat/casino-holdem-misdeal
:feat/casino-holdem-cash-out
:feat/casino-holdem-clock
:feat/casino-holdem-rake
:fix/casino-holdem-stadium-ring
:fix/casino-holdem-phone-felt-shape
:fix/casino-holdem-audit-runs-everything
:feat/casino-holdem-straddle
:fix/casino-holdem-landscape-ring
:feat/casino-holdem-table-file
:fix/casino-holdem-touch-targets
:fix/casino-holdem-audit-modal-blindspot
:fix/casino-holdem-quicksplit-chop
:fix/casino-holdem-buildable-bet-sizes
:fix/casino-holdem-pot-sized-raise
:fix/casino-holdem-chips-to-count-out
:fix/casino-holdem-first-buy-in
:fix/casino-holdem-seating-a-table
:fix/casino-holdem-showdown-order
:fix/casino-holdem-hand-log-filter
:fix/casino-holdem-posting-in
:fix/casino-holdem-dead-button
:fix/casino-holdem-discarded-pot
:fix/casino-holdem-honest-tank-clock
:fix/casino-holdem-export-the-notes
:fix/casino-holdem-stacks-in-chips
:fix/casino-holdem-close-audit-blind-spots
:fix/casino-holdem-readable-dim-states
:fix/casino-holdem-drop-broken-watermark
:fix/casino-holdem-two-tabs
:fix/casino-holdem-unreadable-save
:fix/casino-holdem-say-when-not-saving
:fix/casino-holdem-shortcut-discovery
:fix/casino-holdem-rulings-index-compact
:fix/casino-holdem-rulings-index
:fix/casino-holdem-payout-in-chips
:fix/casino-holdem-move-seat-on-touch
:fix/casino-holdem-amount-fields-select
:fix/casino-holdem-touch-targets-by-pointer
:fix/casino-holdem-button-box-model
:fix/casino-holdem-blind-badge-placement
:fix/casino-holdem-buyin-deals-in
:fix/casino-holdem-bet-vs-raise
:fix/casino-holdem-deal-around-broke
:fix/casino-holdem-settle-up
:fix/casino-holdem-allin-and-bar
:fix/casino-holdem-one-dealer-button
:fix/casino-holdem-manual-deal
:fix/casino-holdem-less-guessing
:feature/casino-holdem-seat-editor
:fix/casino-holdem-landscape-table
:feature/casino-holdem-acting-seat
:feature/casino-holdem-raise-guard
:feature/casino-holdem-first-run
:feature/casino-holdem-contrast-audit
:feature/casino-holdem-layout-audit
:feature/casino-holdem-blind-fairness
:feature/casino-holdem-rulings-depth
:feature/casino-holdem-bank-audit
:feature/casino-holdem-fewer-taps
:feature/casino-holdem-render-perf
:feature/casino-holdem-keyboard-focus
:feature/casino-holdem-resilience
:feature/casino-holdem-messy-tables
:feature/casino-holdem-touch-mobile
:chore/casino-holdem-tech-debt
:feature/casino-holdem-dealer-batch
:feature/casino-holdem-seat-count-safety
:feature/casino-holdem-odd-chip
:feature/casino-holdem-button-moves
:feature/casino-holdem-allin-runout
:feature/casino-holdem-heads-up
:feature/casino-holdem-contrast
:feature/casino-holdem-touch-audit
:feature/casino-holdem-wizard-polish
:feature/casino-quicksplit-side-pots
:feature/casino-holdem-rebuys
:feature/casino-holdem-rulings
:feature/casino-holdem-sidebar-polish
:feature/casino-holdem-keyboard
:feature/casino-holdem-action-undo
:feature/casino-holdem-pace
:feature/casino-holdem-side-pot-breakdown
:feature/casino-holdem-gestures
:feature/casino-holdem-card-picker
:feature/casino-holdem-live-betting
:feature/casino-holdem-bet-chips
:feature/casino-holdem-seat-legibility
:feature/casino-holdem-undo-toasts
:feature/casino-holdem-quick-split
:feature/casino-holdem-mobile-table
:feature/casino-holdem-hand-history
:feature/casino-texas-holdem
:feature/casino-holdem-dealer-mode-polish
:feature/fractional-learned-weights
:fix/stockfish-dispose-hang
:fix/blog-cache-staleness
:fix/workflows
:gitea/workflows
:echo-acoustic-ranging
:chess-ui-overhaul
:feature/customChessEngine
:feature/blog
:AddProject
:feature/generalUpdate
:tech-debt/chess-cleanup
:tests/CreatePlaywrightTests
:UpdateParticleSimulatorButton
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The standings had a column headed Cash out and it did not hold an amount to pay. It held the difference against the player's buy-in. Measured on a table where Ann bought in for $200 and sits behind $340:
She is handed $340. The column called "Cash out" says $140, under a heading that invites reading it as the payout, at the exact moment somebody is counting money onto the table. The number a banker's hands actually follow — what the player is holding — was computed all along, written to the CSV, and never shown on screen.
What changed
Three columns, saying what they are:
What was given up. Net — won less paid in, from the hand log — comes off the screen to make room, and I'd rather say that plainly than bury it. It is the weakest of the three: it only moves when a pot is resolved through the wizard, so at a table where the dealer settles pots by hand it reads $0 all night beside two columns that don't, and up/down already answers "how are they doing". It stays in the CSV export, which loses nothing. (Correction to an earlier note of mine: I first said the wide layout never renders. Measured across 390-3440px, it does — at 768px the sidebar becomes a full-width panel, the container reaches 41rem and all six columns show. It is only unreachable on desktop, where the sidebar is pinned at 320px. So on a tablet-width layout Net is still on screen; on a phone or a desktop it is not.)
Verification
4 new tests in
tests/holdem/bankAudit.test.js: chips-in-front is what they hold rather than what they're up, a losing player still has chips to be handed, chips committed mid-hand are counted as theirs, and across a mixed table the two columns always differ by exactly the buy-in. Suite at 370 tests, 0 failures. Nothing else consumes the removed rendering;chipsInFrontis additive, and settle-up and the bank check still readcashPosition.Playwright MCP at 390/1280/1900 on a table of four with mixed results: header and every row read
Player · Chips · Up/downwith correct values at all three, no column overflow, no sideways scroll, contrast and layout audit clean, no console errors.Stacked on
fix/casino-holdem-first-buy-in.🤖 Generated with Claude Code
https://claude.ai/code/session_015bnp7xKUPFFSpwkYNFaPgb
The standings had a column headed "Cash out" and it did not hold an amount to pay. It held the difference against the player's buy-in. Measured on a table where Ann bought in for $200 and sits behind $340: PLAYER NET CASH OUT Ann $0 +$140 She is handed $340. The column called "Cash out" says $140, under a heading that invites reading it as the payout, at the exact moment somebody is counting money onto the table. The number a banker's hands actually follow — what the player is holding — was computed all along and written to the CSV, and never shown on screen. Three columns now, and they say what they are: Player, Chips, Up/down. Chips is a plain amount and never signed, because it is a quantity of money to hand over. Up/down keeps the sign and the colour, because it is a result. The two differ by exactly the buy-in, which is asserted rather than assumed. Chips counts what is out in the middle for the hand in progress as still theirs, for the same reason the up/down figure does: the panel is read mid-hand constantly and a stack that drops by the size of a bet looks like money going missing. Net — won less paid in, from the hand log — comes off the screen to make room. It is the weakest of the three: it only moves when a pot is resolved through the wizard, so at a table where the dealer settles pots by hand it reads $0 all night beside two columns that don't, and up/down already answers "how are they doing". It stays in the CSV export, which loses nothing. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_015bnp7xKUPFFSpwkYNFaPgbPull request closed