Fixes #227 - Replace hardcoded Elo ratings with 2026 FanGraphs Depth Charts projected run differential (RDif) for all 30 teams - Replace Elo formula with Bill James log5 using RDif → win rate conversion - Restore p_div/p_wc from FanGraphs playoff odds (divTitle/wcTitle) for seeding draws — previously these were incorrectly derived from raw win rates, which gave the Dodgers only ~24% division win probability instead of the correct ~90% - Add RDIF_DIVISOR constant to compress team strengths toward .500 for playoff parity; set to 8000 (Dodgers +137 → ~51.7% per-game win rate) - Fix minimum team check: < 5 → < 6 (need 3 div winners + 3 wild cards) - Fix Colorado Rockies p_div 0.000 → 0.001 for consistency - Fix stale comments throughout; update tests Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| hooks | ||
| lib | ||
| models | ||
| routes | ||
| services | ||
| test | ||
| types | ||
| utils | ||
| welcome | ||
| app.css | ||
| entry.client.tsx | ||
| entry.server.tsx | ||
| root.tsx | ||
| routes.ts | ||