Skip to main content

F055 — Demo Hand Panel

Business Rule

A hidden debug panel, activated only via a URL parameter, allows operators and QA engineers to force any of 17 pre-computed game scenarios at will. It is invisible in normal play and has no effect on production deployments unless the URL parameter is explicitly added.

Activation

Append ?demo to the game URL:
A red DEMO button appears in the top-right corner of the game. Clicking it toggles a list of 17 preset hand scenarios. Clicking any scenario forces that hand immediately (interrupting any in-progress game).

The 17 Preset Scenarios

These are the 17 pre-computed demoData[] records from coredata.ts, sourced from hedgeem-v4/odobo/src/js/dev/demodata.js. They mirror v5’s DEMOMENUCONFIG.OPTIONS (IDs 1–17 in debug.js).

V5 Source References

V6 Implementation

Files

Key Locations

Architecture Difference from V5

In v5, the numbered preset IDs (1–17) were sent to the server which looked up a stored deal and returned computed odds. In v6, the 17 demoData[] records are embedded client-side with full pre-computed odds for all stages — no server round-trip is needed.

Not Yet Implemented

Custom hand input — v5 allowed pasting a JSON hand string ({"hands":["4dKs",...],"bc1":"3c",...}) which was sent to the server with action:"demo" and returned with computed odds. Implementing this in v6 requires /api/deal to accept a forceHand parameter. The _onCustomDemoAction() parsing logic in baseGameScene.js:45–89 can serve as the reference.

Acceptance Criteria

Version Parity