bcook/blackjack + blackjack-challenge: hint card with the book play (?)#99
Merged
Conversation
Pressing ? (or /, where ? needs shift) toggles a per-seat hint card: on your turn a line under the dealer's cards reads the book play for the hand as it stands - "hint: HIT - hard 14 vs 10". The state is render-only and per seat, so only the player who turned hints on sees them; a HINT touch chip makes the rune reachable on deck, and the turn prompt ends with [?]hint. Each table gets advice for ITS rules (strategy.go). Blackjack is standard six-deck basic strategy (S17, DAS, late surrender), degrading correctly when the ideal cell is unavailable: a 3-card 16 vs 10 hits (surrender window passed), a broke soft 18 vs 5 stands (can't double), capped 8,8 plays as hard 16. The insurance window answers too: the book never takes insurance. Blackjack Challenge adapts the chart to the variant: no surrender cells, doubles live on 3-card hands, pairs split by point value (K+10 is a pair of 10s), and the Five Card Trick dominates 4-card hands - a soft 4-card hand can't bust so hitting is a guaranteed instant win, hard 4-card 15-and-under chases the trick, and 4-card 17 vs 9/10/A hits because ties lose. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Both scripts flip the hint card on right after the deal and capture it: the seeded hands read "hint: STAND - hard 20 vs 6" (the pair of tens plays as its total) and "hint: SPLIT - pair of 8s vs 4", verified by native replays of both seeds. The card toggles back off after the shot so every frame that follows is unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Smoke screensDeterministic scripted screens for
|
shellcade could not publish this release to the arcadeThe GitHub release was cut, but the arcade's re-verification refused it,
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Press
?(or/, for keyboards where?needs shift) to toggle a hint card: on your turn, a line under the dealer's cards shows the book play for the hand exactly as it stands —hint: HIT - hard 14 vs 10,hint: SPLIT - pair of 8s vs 6. Hints are per-seat, render-only state: only the player who turned them on sees them, and the line waits for card animations to land so it never spoils a card mid-flight. AHINTtouch chip is declared so the rune is reachable on deck, and the turn prompt now ends with[?]hintfor discoverability.Per-table advice, not one chart
Each game gets a
strategy.gotuned to its rules:Blackjack — standard six-deck basic strategy for this table (dealer stands on all 17, double after split, late surrender), with correct degradation when the ideal cell is unavailable:
Blackjack Challenge — the chart adapted to the variant:
Tests
~30 chart cells asserted across both games (variant twists first, shared spine after), availability-fallback tests, and toggle-and-render tests asserting the hint line appears on its row for the active viewer and clears on toggle-off.
go test,go vet, andlint-widthclean in both games.🤖 Generated with Claude Code