Business Rule
HedgeEm deals a configurable number of simultaneous Texas Hold’em hands at one table. The player bets on one or more of these hands before community cards are revealed.- Default: 3 hands
- Minimum: 2 hands
- Reference client UI maximum: 4 hands (configurable via settings — see F030)
- Theoretical backend maximum: 23 hands —
floor((52 − 5) ÷ 2)— 52 cards in a standard deck, 5 reserved for community cards, 2 hole cards per hand
Technical Design
UMA client (platform.js)
NUM_HANDS is sent to the GDK in the game:InitStatus payload:
Ac = Ace of clubs, Kd = King of diamonds → AcKd).
Deck constraint derivation
Hand indexing
Hands are 0-indexed internally._holeCards[0] is hand 0, _holeCards[1] is hand 1, etc. UI panels are rendered in the same order.
Acceptance Criteria
- AC1 — After page load and initialisation,
window._holeCards.lengthequals the configured hand count (default: 3) - AC2 — Each entry in
_holeCardsis exactly 4 characters (two 2-char card tokens, e.g.AcKd) - AC3 — Hand count is within the valid range: ≥ 2 and ≤ 23
- AC4 — No card appears more than once across all hands (deck integrity — no duplicates)
Version Parity
Known Discrepancies
None documented yet.Test Coverage
Playwright spec:tests/features/F001-hand-count.spec.ts — AC1–AC4.
Run with: