From bcfc1f2f52e53a362902c38ea193a847b3e07951 Mon Sep 17 00:00:00 2001 From: JoshHeaps Date: Mon, 31 Aug 2026 17:37:48 -0600 Subject: [PATCH] Track session standings so the dealer can settle up at the end of the night MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The hand log answered "what happened in hand 12"; it couldn't answer "what does Alice owe". Each resolved pot now records a per-seat ledger (what that player put in, what they took down) alongside the payouts, and a Session Standings panel sums it into one row per player — paid in, won, net, sorted by who's up. The CSV export carries the same table, so one file covers both the hand-by-hand trail and the cash-out numbers. Keyed by seat id rather than name, so renaming or reseating a player doesn't split their totals. Hands recorded before this change have no ledger and are skipped rather than counted wrong. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_015bnp7xKUPFFSpwkYNFaPgb --- JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml | 25 ++++++++ JoshHeaps.Net/wwwroot/css/casino/holdem.css | 57 +++++++++++++++++++ .../js/casino/holdem/handHistoryExport.js | 18 +++++- .../wwwroot/js/casino/holdem/main.js | 2 +- .../wwwroot/js/casino/holdem/potWizard.js | 3 +- .../wwwroot/js/casino/holdem/render.js | 40 ++++++++++++- .../wwwroot/js/casino/holdem/state.js | 51 ++++++++++++++++- 7 files changed, 189 insertions(+), 7 deletions(-) diff --git a/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml b/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml index c8a1476..fe9b55e 100644 --- a/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml +++ b/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml @@ -86,6 +86,22 @@ +
+ Session Standings +
+
+
+ Player + In + Won + Net +
+
+
+

Once you resolve a pot, everyone's running total for the night shows up here.

+
+
+
Hand History
@@ -169,6 +185,15 @@
+ +