Implements a new `nfl_bracket` simulator that projects the NFL regular season and full playoff bracket using nfelo Elo ratings. - Simulates remaining regular season games (17 total) per team using Elo win probability vs an average opponent, then seeds both conferences (division winners = seeds 1–4, wildcards = 5–7) per simulation - Simulates Wild Card, Divisional, Conference Championship, and Super Bowl rounds with correct NFL bracket structure (seed 1 bye) - Applies +48 Elo home-field advantage (~57% win rate) for all rounds except the neutral-site Super Bowl - Pre-season mode (no standings in DB): simulates all 17 games from scratch; falls back to futures odds → Elo conversion if no sourceElo - Validates all 8 NFL divisions have Elo-rated teams before simulating, with a clear error listing missing divisions - Registers as `nfl_bracket` simulator type in the registry and schema - Adds migration to extend the `simulator_type` enum - Also updates drizzle.config.ts to prefer DIRECT_DATABASE_URL when set Fixes #129 Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| afl-simulator.test.ts | ||
| cs-major-simulator.test.ts | ||
| darts-simulator.test.ts | ||
| golf-simulator.test.ts | ||
| mlb-simulator.test.ts | ||
| ncaam-simulator.test.ts | ||
| ncaaw-simulator.test.ts | ||
| nfl-simulator.test.ts | ||
| nhl-simulator.test.ts | ||
| snooker-simulator.test.ts | ||
| tennis-simulator.test.ts | ||
| ucl-simulator.test.ts | ||
| wnba-simulator.test.ts | ||
| world-cup-simulator.test.ts | ||