From 552ec1a5426e3366fe2393f35b758ae8ba44453b Mon Sep 17 00:00:00 2001 From: JoshHeaps Date: Mon, 31 Aug 2026 23:53:15 -0600 Subject: [PATCH] Add chips to a seat without leaving the table MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Somebody rebuying is the most common interruption in a cash game, and the only way to record it was to open the seat editor and retype a stack from memory. Press and hold a seat and there's now "Add chips…": quick amounts off the table's starting stack — half a buy-in, a buy-in, two — with a keypad for the times it isn't one of those. It's undoable like every other seat action, and it records cash handed over as well as chips added, because those answer different questions. The stack moves every hand; what a player has paid in only moves when they buy. The export gains bought in, chips now, and up/down, so settling up at the end of the night is reading a row rather than reconstructing it. Getting that last column right needed care. Chips in front of a player disagree with the hand log for as long as a hand is open — and since blinds post the instant the previous hand settles, that window is almost always. Counting what a player already has in the current pot as still theirs makes the cash position agree with the hand log at any moment, including across a rebuy. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_015bnp7xKUPFFSpwkYNFaPgb --- JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml | 21 +++ JoshHeaps.Net/wwwroot/css/casino/holdem.css | 139 ++++++++++++++++++ .../wwwroot/js/casino/holdem/addChips.js | 92 ++++++++++++ .../js/casino/holdem/handHistoryExport.js | 14 +- .../wwwroot/js/casino/holdem/main.js | 18 +++ .../wwwroot/js/casino/holdem/render.js | 7 + .../wwwroot/js/casino/holdem/seatMenu.js | 4 + .../wwwroot/js/casino/holdem/shortcuts.js | 2 +- .../wwwroot/js/casino/holdem/state.js | 34 ++++- 9 files changed, 322 insertions(+), 9 deletions(-) create mode 100644 JoshHeaps.Net/wwwroot/js/casino/holdem/addChips.js diff --git a/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml b/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml index 62684cd..14b29c5 100644 --- a/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml +++ b/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml @@ -182,6 +182,7 @@ Stack +
+ +