From 7bedee2934d9f416cd2c2362baf30dd2eca33d32 Mon Sep 17 00:00:00 2001 From: JoshHeaps Date: Mon, 31 Aug 2026 19:01:08 -0600 Subject: [PATCH] Track the betting live so the dealer taps instead of types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Until now a dealer kept the money in their head and typed each player's total into a form. This adds the running hand: blinds post themselves, every seat has a stack, and one tap per decision moves the action on. The bar sits at the bottom of the screen where a thumb already is, and shows only what's true right now — Fold, then Check or Call with the amount owed, then Bet or Raise. Calling more than a player has left says "Call all-in" rather than quoting a number they can't cover. Raising offers min, half pot, pot and all-in before it offers a keypad, because a dealer calling "raise to sixty" wants a button. When everyone has answered, the bar becomes Deal Flop, then Turn, River, and finally Showdown, which hands off to the pot wizard that already existed. Winnings go straight back in front of the winner, so the next hand's stacks are already right. The money hooks into what was already there rather than running beside it: a street's chips sweep into each seat's amountOverride, the same field the pot badge, the pot wizard, the session standings and the CSV export all read. So nothing downstream changed, and a dealer who prefers the old typed workflow still has it. Tables saved before this exist without any of these fields, so load() fills them in rather than making someone reset a table mid-session. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_015bnp7xKUPFFSpwkYNFaPgb --- JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml | 24 ++ JoshHeaps.Net/wwwroot/css/casino/holdem.css | 239 +++++++++++++++++- .../wwwroot/js/casino/holdem/actionBar.js | 230 +++++++++++++++++ .../wwwroot/js/casino/holdem/betting.js | 233 +++++++++++++++++ .../wwwroot/js/casino/holdem/main.js | 53 +++- .../wwwroot/js/casino/holdem/render.js | 32 ++- .../wwwroot/js/casino/holdem/state.js | 28 ++ 7 files changed, 823 insertions(+), 16 deletions(-) create mode 100644 JoshHeaps.Net/wwwroot/js/casino/holdem/actionBar.js create mode 100644 JoshHeaps.Net/wwwroot/js/casino/holdem/betting.js diff --git a/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml b/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml index bc575fd..dbd4537 100644 --- a/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml +++ b/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml @@ -67,6 +67,21 @@

Turn this on if a person outside the game deals — no seat shows the dealer button, but blinds still rotate automatically each hand.

+
+ + +
+ +

Blinds post themselves each hand, and every seat without its own stack starts here. Set a seat's own stack in its editor.