bcook/blackjack: make surrender and insurance read on the felt#100
Conversation
A surrendered hand now shows SURR (dim) where its total would sit, from the fold through results, and its settlement summary says "SURR -25" instead of "LOSE -25" - the half-stake number explained rather than a played-out defeat. Insurance is visible per seat on the value row: an open offer reads "ins?" on every placed seat still deciding, a bought stake reads "INS" beside the hand total and stays through turns and results, and a decline shows nothing. A seat that insures and then splits keeps the marker - the compact split layout re-homes INS onto the freed value row (the "aces: 1 card" note wins when both apply). Challenge is untouched: that table has neither surrender nor insurance. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Smoke screensDeterministic scripted screens for
|
…lf-only The pairs side-bet line sits directly under its seat's own name row, which already carries the player's character tile — so the line renders as bare text now (betting stake and result both), and the unused centerSlotChar helper retires. Tiles stay on the backers line, where the face identifies OTHER players. A lost side bet is the owner's quiet news: "pairs lost" renders only on the viewer's own seat, while wins broadcast to every viewer. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Also folded in here per feedback: the pairs side-bet line no longer carries the seat's own character tile (it sits directly under the name row, which already has one — tiles stay on the backers line where they identify other players), and a lost side bet now reads "pairs lost" only on the viewer's own seat while wins still broadcast to the table. Applies to both games; covered by |
shellcade could not publish this release to the arcadeThe GitHub release was cut, but the arcade's re-verification refused it,
|
What
Surrendering and buying insurance were nearly invisible on the felt: a surrendered hand kept showing a live-looking total, and nothing marked who had bought insurance. Now:
Surrender
SURR(dim) where the total would sit, from the fold through results.SURR -25instead ofLOSE -25— the odd half-stake number is explained (an odd bet's half still rounds up to the player), not mistaken for a played-out defeat.Insurance
ins?on its value row — who's holding up the table reads at a glance, alongside the existing action-bar countdown.INSbeside the hand total (19 INS) and stays visible through turns and results; declining shows nothing.INSonto the freed value row (the existingaces: 1 cardnote takes precedence when both apply).Challenge is untouched — that table has neither surrender nor insurance.
Tests
Three new render tests: the SURR value row + settlement summary, the
ins?→INSwindow flow across two seats (exactly one seat tagged after one buys and one declines), and the INS tag surviving a split.go test,go vet, andlint-widthclean.🤖 Generated with Claude Code