This round came from research rather than invention — the prompt suggests searching when out of ideas, so I did. Dealing guides are consistent on one point:
"The most common side pot mistake is not miscounting the chips but failing to announce the pot breakdown clearly before the showdown."
The tool had the arithmetic right but only revealed it after the hand, one layer at a time, as the wizard asked who won each. A dealer needs it during the hand, to say out loud.
As soon as an all-in splits the money, the action bar lists the main pot and each side pot with the amount and who can win it — live, updating as the hand goes.
The wizard repeats it under "Announce before the showdown" before asking for a winner.
A hand with a single undivided pot shows nothing, so the line means something when it appears.
Uncalled chips are called what they are. Money above the largest live contribution was never contested — usually an overbet by someone who then folded — so it shows as "Uncalled — back to Dev" rather than padding a side pot nobody can win.
Validation (Playwright, headed)
This is money logic, so it was tested as pure functions before any UI:
Five textbook cases by hand: the classic 50/100/200 three-way (main $150, side $100, side $100); an even pot (one layer); a folded short stack (dead money merged, correct eligibility); two equal all-ins (no redundant layer); an uncalled overbet.
3,000 randomised tables (2–7 players, random amounts, 40% fold rate): pots + returned chips always equal every chip on the table; eligibility only ever shrinks up the layers; no folded player is ever eligible; no empty or negative layers.
The announcement is cross-checked against the payout engine — for every trial, the announced pot total equals what the wizard actually distributes.
A live three-way all-in driven through the real action bar (Ann 50 / Ben 120 / Cass 120) produced "Main pot $150 — Ann, Ben, Cass" and "Side pot 1 $140 — Ben, Cass", matching the $290 pot badge.
Two bugs found and fixed by that cross-check, both of which would have misinformed a dealer:
The first version counted an uncalled overbet as a side pot, so the announced total exceeded what could actually be won — it disagreed with the payout engine in 138 of 500 trials. Uncalled money is now separated out and returned.
When every player was marked folded, the return logic claimed the whole table was uncalled. That state is a data-entry mistake, not a table of uncalled bets, so it now stays quiet and the wizard asks the dealer to fix the fold flags.
No console errors. Based on feature/casino-holdem-gestures (PR #23) — merge order #21 → #22 → #23 → this.
This round came from research rather than invention — the prompt suggests searching when out of ideas, so I did. Dealing guides are consistent on one point:
> *"The most common side pot mistake is not miscounting the chips but failing to announce the pot breakdown clearly before the showdown."*
The tool had the arithmetic right but only revealed it **after** the hand, one layer at a time, as the wizard asked who won each. A dealer needs it **during** the hand, to say out loud.
- As soon as an all-in splits the money, the **action bar lists the main pot and each side pot** with the amount and who can win it — live, updating as the hand goes.
- The **wizard repeats it under "Announce before the showdown"** before asking for a winner.
- A hand with a single undivided pot shows nothing, so the line means something when it appears.
**Uncalled chips are called what they are.** Money above the largest live contribution was never contested — usually an overbet by someone who then folded — so it shows as "Uncalled — back to Dev" rather than padding a side pot nobody can win.
## Validation (Playwright, headed)
This is money logic, so it was tested as pure functions before any UI:
- **Five textbook cases** by hand: the classic 50/100/200 three-way (main $150, side $100, side $100); an even pot (one layer); a folded short stack (dead money merged, correct eligibility); two equal all-ins (no redundant layer); an uncalled overbet.
- **3,000 randomised tables** (2–7 players, random amounts, 40% fold rate): pots + returned chips always equal every chip on the table; eligibility only ever shrinks up the layers; no folded player is ever eligible; no empty or negative layers.
- **The announcement is cross-checked against the payout engine** — for every trial, the announced pot total equals what the wizard actually distributes.
- A live three-way all-in driven through the real action bar (Ann 50 / Ben 120 / Cass 120) produced "Main pot $150 — Ann, Ben, Cass" and "Side pot 1 $140 — Ben, Cass", matching the $290 pot badge.
**Two bugs found and fixed by that cross-check**, both of which would have misinformed a dealer:
1. The first version counted an uncalled overbet as a side pot, so the announced total exceeded what could actually be won — it disagreed with the payout engine in **138 of 500 trials**. Uncalled money is now separated out and returned.
2. When *every* player was marked folded, the return logic claimed the whole table was uncalled. That state is a data-entry mistake, not a table of uncalled bets, so it now stays quiet and the wizard asks the dealer to fix the fold flags.
No console errors. Based on `feature/casino-holdem-gestures` (PR #23) — merge order **#21 → #22 → #23 → this**.
Sources: [PokerNews — Tips for Mistake-Free Dealing in Home Games](https://www.pokernews.com/strategy/deal-with-it-tips-for-mistake-free-dealing-in-home-games-30231.htm), [PokerCoaching — How to Deal Texas Hold em](https://pokercoaching.com/blog/how-to-deal-texas-holdem/), [Home Poker Tourney — Poker Dealer Errors](https://homepokertourney.org/dealers.htm)
Dealing guides are consistent that the most common side-pot error isn't
miscounting the chips, it's failing to announce the breakdown clearly before
the showdown. The tool had the arithmetic right but only revealed it after the
hand, one layer at a time, as the wizard asked who won each.
The breakdown is now visible while the hand is still running: as soon as an
all-in splits the money, the action bar lists the main pot and each side pot
with the amount and who can win it, and the wizard repeats it under "Announce
before the showdown" before asking for a winner. A hand with a single
undivided pot shows nothing, so the line means something when it appears.
Chips nobody could call are called what they are. Money above the largest live
contribution was never contested — usually an overbet by someone who then
folded — so it's listed as "Uncalled, back to X" rather than padding a side
pot nobody can win. The wizard's leftover warning says the same thing instead
of telling the dealer to un-fold someone to win it, which was the wrong advice
for chips that should simply be pushed back.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015bnp7xKUPFFSpwkYNFaPgb
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.
This round came from research rather than invention — the prompt suggests searching when out of ideas, so I did. Dealing guides are consistent on one point:
The tool had the arithmetic right but only revealed it after the hand, one layer at a time, as the wizard asked who won each. A dealer needs it during the hand, to say out loud.
Uncalled chips are called what they are. Money above the largest live contribution was never contested — usually an overbet by someone who then folded — so it shows as "Uncalled — back to Dev" rather than padding a side pot nobody can win.
Validation (Playwright, headed)
This is money logic, so it was tested as pure functions before any UI:
Two bugs found and fixed by that cross-check, both of which would have misinformed a dealer:
No console errors. Based on
feature/casino-holdem-gestures(PR #23) — merge order #21 → #22 → #23 → this.Sources: PokerNews — Tips for Mistake-Free Dealing in Home Games, PokerCoaching — How to Deal Texas Hold em, Home Poker Tourney — Poker Dealer Errors