strat-gameplay-webapp/backend/tests/unit
Cal Corum fc0e2f100c CLAUDE: Integrate X-Check advancement with full GameState support
Updated X-Check runner advancement functions to properly delegate to
existing result handlers for non-error cases.

Changes:
- Updated x_check_g1/g2/g3 signatures to accept GameState, hit_location,
  and defensive_decision parameters
- Updated x_check_f1/f2/f3 signatures to accept GameState and hit_location
- Implemented delegation logic: error cases use simple tables, non-error
  cases delegate to existing tested result handlers (_execute_result,
  _fb_result_*)
- Updated PlayResolver._get_x_check_advancement() to pass new parameters
- Updated all tests to provide required GameState fixtures

Benefits:
- Reuses 13 existing groundball + 4 flyball result handlers (DRY)
- No DP probability needed - X-Check d20 already tested defender
- Full game context: real lineup IDs, outs count, conditional logic
- Error cases remain simple and efficient

Test Results: 264/265 core tests passing (1 pre-existing dice failure)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 00:21:52 -06:00
..
config CLAUDE: Complete Phase 3B - Add all 6 infield error charts 2025-11-02 14:33:59 -06:00
core CLAUDE: Integrate X-Check advancement with full GameState support 2025-11-03 00:21:52 -06:00
models CLAUDE: Update tests to match Phase 2 model changes 2025-10-31 16:11:39 -05:00
terminal_client CLAUDE: Update tests to match Phase 2 model changes 2025-10-31 16:11:39 -05:00
websocket CLAUDE: Update tests to match Phase 2 model changes 2025-10-31 16:11:39 -05:00
__init__.py CLAUDE: Complete Week 4 - State Management & Persistence 2025-10-22 12:01:03 -05:00