From 08269639606c0481037cbde7ebaf2e0455460883 Mon Sep 17 00:00:00 2001 From: salmonik Date: Thu, 29 Oct 2026 18:43:09 +0100 Subject: v2.2.1: forfeit blackjack bets when leaving or disconnecting --- docs/GAMES.md | 6 ++++-- docs/TESTING.md | 7 ++++--- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/GAMES.md b/docs/GAMES.md index 4c42369..ae15d50 100644 --- a/docs/GAMES.md +++ b/docs/GAMES.md @@ -23,7 +23,9 @@ protocol/loop change. - Dealer stands on all 17s (including soft 17). - Blackjack pays 3:2, rounded down to whole PLN. - Hit, stand, and double; no split, insurance, or surrender. -- The bet is reserved when the hand starts. Cancel or disconnect refunds it. +- The bet is reserved when the hand starts. Leaving an active hand with Q, or + disconnecting mid-hand, forfeits the reserved bet; it is not refunded. A + settled hand is unaffected. - A natural or dealer blackjack settles immediately. Client controls: @@ -34,7 +36,7 @@ S stand D double (on the first two cards) SPACE deal the next hand + or = / - change the next hand's bet -Q leave the table (active hand is cancelled and refunded) +Q forfeit an active hand (bet is lost), or leave when no hand is active ``` ## Roulette diff --git a/docs/TESTING.md b/docs/TESTING.md index ed2f746..ec5c681 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md @@ -87,10 +87,11 @@ Use an 80-column terminal because several output lines are width-sensitive. 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. +4. Q during a hand forfeits the reserved bet (it is **not** refunded); Q after + a hand just leaves. Disconnecting mid-hand also forfeits it. 5. Check the audit row: `game_type = blackjack`, the total bet (including a - double), winnings, and the final cards/result in `details`. + double), winnings, and the final cards/result in `details`. A forfeit has + `result = forfeit`, `winnings = 0`. ## Manual server checks -- cgit v1.2.3