summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-29 18:43:09 +0100
committersalmonik <salmonik@tuta.io>2026-10-29 18:43:09 +0100
commit08269639606c0481037cbde7ebaf2e0455460883 (patch)
tree57c1f967e8836a1a7da84b1887d932e0067d538f /docs
parentv2.2.0: add blackjack with reserved bets and hit/stand/double (diff)
downloadzagan-bet-08269639606c0481037cbde7ebaf2e0455460883.tar.gz
zagan-bet-08269639606c0481037cbde7ebaf2e0455460883.zip
v2.2.1: forfeit blackjack bets when leaving or disconnecting
Diffstat (limited to '')
-rw-r--r--docs/GAMES.md6
-rw-r--r--docs/TESTING.md7
2 files changed, 8 insertions, 5 deletions
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.
23- Dealer stands on all 17s (including soft 17). 23- Dealer stands on all 17s (including soft 17).
24- Blackjack pays 3:2, rounded down to whole PLN. 24- Blackjack pays 3:2, rounded down to whole PLN.
25- Hit, stand, and double; no split, insurance, or surrender. 25- Hit, stand, and double; no split, insurance, or surrender.
26- The bet is reserved when the hand starts. Cancel or disconnect refunds it. 26- The bet is reserved when the hand starts. Leaving an active hand with Q, or
27 disconnecting mid-hand, forfeits the reserved bet; it is not refunded. A
28 settled hand is unaffected.
27- A natural or dealer blackjack settles immediately. 29- A natural or dealer blackjack settles immediately.
28 30
29Client controls: 31Client controls:
@@ -34,7 +36,7 @@ S stand
34D double (on the first two cards) 36D double (on the first two cards)
35SPACE deal the next hand 37SPACE deal the next hand
36+ or = / - change the next hand's bet 38+ or = / - change the next hand's bet
37Q leave the table (active hand is cancelled and refunded) 39Q forfeit an active hand (bet is lost), or leave when no hand is active
38``` 40```
39 41
40## Roulette 42## 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.
87 D is only offered on the first two cards and reserves the extra bet. 87 D is only offered on the first two cards and reserves the extra bet.
883. Stand and check the dealer stands on all 17s. Check a dealer bust pays the 883. Stand and check the dealer stands on all 17s. Check a dealer bust pays the
89 player, and a natural blackjack pays 3:2. 89 player, and a natural blackjack pays 3:2.
904. Q during a hand sends cancel and refunds the reserved bet; Q after a hand 904. Q during a hand forfeits the reserved bet (it is **not** refunded); Q after
91 just leaves. Disconnecting mid-hand also refunds it. 91 a hand just leaves. Disconnecting mid-hand also forfeits it.
925. Check the audit row: `game_type = blackjack`, the total bet (including a 925. Check the audit row: `game_type = blackjack`, the total bet (including a
93 double), winnings, and the final cards/result in `details`. 93 double), winnings, and the final cards/result in `details`. A forfeit has
94 `result = forfeit`, `winnings = 0`.
94 95
95## Manual server checks 96## Manual server checks
96 97