From b5a52fc0312afdf5d5fbe53275dc88d6d881c2ff Mon Sep 17 00:00:00 2001 From: salmonik Date: Thu, 29 Oct 2026 18:22:40 +0100 Subject: v2.2.0: add blackjack with reserved bets and hit/stand/double --- docs/TESTING.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs/TESTING.md') diff --git a/docs/TESTING.md b/docs/TESTING.md index d944b42..ed2f746 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md @@ -13,6 +13,7 @@ shared global database. Each test owns its state. | --- | --- | | `tests/client_core.rs` | Client command/game flows via a headless screen applying logical effects. | | `tests/client_ui.rs` | Help, history, completion, bet parsing, display width, cursor math. | +| `tests/blackjack.rs` | Card totals, naturals, hit/stand/double, dealer bust, S17, state parsing. | | `tests/protocol.rs` | Newline buffering and timeout/error classification. | | `tests/roulette.rs` | European wheel, split-bet payouts, zero handling, result parser. | | `tests/server_core.rs` | Handler, bcrypt migration, SQL injection, transaction rollback, `plays` audit, sessions. | @@ -79,6 +80,18 @@ Use an 80-column terminal because several output lines are width-sensitive. 6. The result board shows the winning number/color/parity, the payout, and the new balance. The next spin reuses the placed bets. +## Manual blackjack checklist + +1. `play blackjack` shows the ready board; Space deals. +2. The dealer's hole card is hidden while it is the player's turn. H/S/D work; + D is only offered on the first two cards and reserves the extra bet. +3. Stand and check the dealer stands on all 17s. Check a dealer bust pays the + player, and a natural blackjack pays 3:2. +4. Q during a hand sends cancel and refunds the reserved bet; Q after a hand + just leaves. Disconnecting mid-hand also refunds it. +5. Check the audit row: `game_type = blackjack`, the total bet (including a + double), winnings, and the final cards/result in `details`. + ## Manual server checks - Register, log out, log in again (bcrypt path). -- cgit v1.2.3