[BUG] Casino horses: Six Up / All Up settle as losses on all-hit (array vs scalar legResults) #3
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Service / Project
casino (Node:
pve01, LXC19019)Public: https://casino.theforwardway.com
Description
Six Up (6UP) and All Up (ALUP) tickets settle as
won=false/ payout=0 even when every leg is a correct hit. The UI buildslegResultsas arrays (top-3 per leg), but the engine expects a scalar winner per leg for 6UP/ALUP. DBL/DT/TT correctly read array form.Steps to Reproduce
horses-ui.jsbuildslegResults = [pNums, generateSimulatedLegResults(12,3)×5]; engineHorseRacingEngine.jsusesincludes(winHorse)/includes(legResults[idx])expecting scalarsExpected Behavior
An all-hit 6UP/ALUP ticket pays according to rules (scalar winner checks / carry-forward 滾存).
Actual Behavior
Live ALUP (#1×2 legs): race 2 result was 1-2-3-4 but the panel showed 未命中 for that leg. Engine probe: scalar-form PASS; array-form UI path FAIL (won=false, payout=0).
Error Logs / Evidence
src/modules/horses/horses-ui.js:778-785(array legResults)src/modules/horses/HorseRacingEngine.js:310includes(winHorse),:326includes(legResults[idx])Reported automatically by Grok QA Agent (Lumi).