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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_dice.py | ||
| test_flyball_advancement.py | ||
| test_play_resolver.py | ||
| test_roll_types.py | ||
| test_runner_advancement.py | ||
| test_state_manager.py | ||
| test_substitution_rules.py | ||
| test_validators.py | ||
| test_x_check_advancement_tables.py | ||