Monte Carlo simulation of the 2026 AFL season and 10-team finals series. Elo ratings are backsolved from Squiggle's projected season win totals using the inverse formula: elo = 1500 - 450×log₁₀((1−wins/23)/(wins/23)). - New `afl_bracket` simulator type (schema + migration) - `afl-simulator.ts`: projects remaining regular season via Elo, seeds the AFL_10 finals bracket (Wildcard → QF/EF → SF → PF → Grand Final), and correctly tracks P5/P6 and P7/P8 as separate scoring tiers - `afl.ts` standings sync adapter pulling from Squiggle API (no auth required) - Finals line on standings display set to 10 for AFL seasons - Substring name matching with longest-key-wins to prevent "Port Adelaide" colliding with "Adelaide" when matching "Port Adelaide Power" - 27 unit tests covering bracket logic, column-sum guarantees, and name matching Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| afl-simulator.ts | ||
| auto-racing-simulator.ts | ||
| bracket-simulator.ts | ||
| golf-simulator.ts | ||
| nba-simulator.ts | ||
| ncaam-simulator.ts | ||
| ncaaw-simulator.ts | ||
| nhl-simulator.ts | ||
| registry.ts | ||
| types.ts | ||
| ucl-simulator.ts | ||