Fixed missing PlayOutcome.HIT_BY_PITCH handling in resolve_outcome(). HBP was being submitted via WebSocket but rejected with error: "Unhandled outcome: PlayOutcome.HIT_BY_PITCH" Changes: - Added HBP case to play_resolver.py (lines 430-446) - HBP uses same forced runner advancement logic as WALK - HBP is NOT classified as is_walk=True (correct for stats) - Added 2 unit tests: test_hit_by_pitch, test_hit_by_pitch_bases_loaded Test results: 981/981 passing (100%) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| config | ||
| core | ||
| data | ||
| database | ||
| models | ||
| services | ||
| utils | ||
| websocket | ||
| __init__.py | ||
| config.py | ||
| main.py | ||