summaryrefslogtreecommitdiffstats
path: root/AGENTS.md
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 /AGENTS.md
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 'AGENTS.md')
-rw-r--r--AGENTS.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/AGENTS.md b/AGENTS.md
index f7f0d2b..9bee619 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -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