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__ | ||
| $leagueId.draft-board.$seasonId.tsx | ||
| $leagueId.draft.$seasonId.tsx | ||
| $leagueId.server.ts | ||
| $leagueId.settings.tsx | ||
| $leagueId.sports-seasons.$sportsSeasonId.server.ts | ||
| $leagueId.sports-seasons.$sportsSeasonId.tsx | ||
| $leagueId.standings.$seasonId.teams.$teamId.tsx | ||
| $leagueId.standings.$seasonId.tsx | ||
| $leagueId.tsx | ||
| new.tsx | ||