From 0759d89d1316081514b9a893d0a03a1e05ec8c6a Mon Sep 17 00:00:00 2001 From: JoshHeaps Date: Mon, 31 Aug 2026 21:32:43 -0600 Subject: [PATCH 1/8] Pick hole cards from a grid instead of typing them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Typing "AH" into a two-character box is fine at a desk and miserable at a table: it needs a keyboard, it accepts nonsense like "ZZ", and it happily deals the same card to two players. The two card fields become face-up card slots. Tapping one opens a 52-card grid — four suit columns, thirteen rank rows, one tap per card — and picking the first card moves straight on to the second, because a dealer picking hole cards is always picking two. Cards already dealt elsewhere at the table are greyed out and say who has them, so a duplicate is visibly out of play rather than silently accepted. Cards are still stored as the same two plain characters everything has always read; the suit only becomes a symbol on its way to a human. That formatting is now shared, so the table pucks, the seat editor, the pot wizard, the hand history and the CSV all say A♥ K♦ rather than three of them saying AH KD. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_015bnp7xKUPFFSpwkYNFaPgb --- JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml | 18 +- JoshHeaps.Net/wwwroot/css/casino/holdem.css | 170 +++++++++++++++++- .../wwwroot/js/casino/holdem/cardPicker.js | 131 ++++++++++++++ .../wwwroot/js/casino/holdem/main.js | 6 + .../wwwroot/js/casino/holdem/potWizard.js | 2 +- .../wwwroot/js/casino/holdem/render.js | 42 +++-- 6 files changed, 348 insertions(+), 21 deletions(-) create mode 100644 JoshHeaps.Net/wwwroot/js/casino/holdem/cardPicker.js diff --git a/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml b/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml index dbd4537..53ed580 100644 --- a/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml +++ b/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml @@ -167,8 +167,8 @@
- - + +