diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-29 18:43:09 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-29 18:43:09 +0100 |
| commit | 08269639606c0481037cbde7ebaf2e0455460883 (patch) | |
| tree | 57c1f967e8836a1a7da84b1887d932e0067d538f /AGENTS.md | |
| parent | v2.2.0: add blackjack with reserved bets and hit/stand/double (diff) | |
| download | zagan-bet-08269639606c0481037cbde7ebaf2e0455460883.tar.gz zagan-bet-08269639606c0481037cbde7ebaf2e0455460883.zip | |
v2.2.1: forfeit blackjack bets when leaving or disconnecting
Diffstat (limited to '')
| -rw-r--r-- | AGENTS.md | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -21,7 +21,8 @@ | |||
| 21 | touched. The session is the audit trail for the deduction; without it the | 21 | touched. The session is the audit trail for the deduction; without it the |
| 22 | deduction is orphaned. | 22 | deduction is orphaned. |
| 23 | - Clean up sessions on client disconnect. If a game is in progress when the | 23 | - Clean up sessions on client disconnect. If a game is in progress when the |
| 24 | connection drops, the server must roll back the bet. | 24 | connection drops, settle it as a forfeit (the reserved bet is lost) and |
| 25 | record the play; never refund an active hand. | ||
| 25 | 26 | ||
| 26 | ## Server Handler | 27 | ## Server Handler |
| 27 | - Never hold a lock, drop it, then re-acquire it in the same function to | 28 | - Never hold a lock, drop it, then re-acquire it in the same function to |
