500 trials with a ~3–5% expected win rate had enough variance to occasionally land below the 0.03 threshold (~2% failure rate). Bumping to 2000 trials reduces the std dev by 2x; lowering the threshold to 0.02 keeps the assertion meaningful (still well above random 0.78%) while eliminating the flakiness. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| afl-simulator.ts | ||
| auto-racing-simulator.ts | ||
| bracket-simulator.ts | ||
| golf-simulator.ts | ||
| mlb-simulator.ts | ||
| nba-simulator.ts | ||
| ncaam-simulator.ts | ||
| ncaaw-simulator.ts | ||
| nhl-simulator.ts | ||
| registry.ts | ||
| snooker-simulator.ts | ||
| tennis-simulator.ts | ||
| types.ts | ||
| ucl-simulator.ts | ||