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:
The 17 Preset Scenarios
These are the 17 pre-computeddemoData[] 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 17demoData[] 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.