strat-gameplay-webapp/backend/terminal_client
Claude 263e1536a9
CLAUDE: Add interrupt plays, jump roll, and fielding roll testing commands to terminal client
Implemented features:
- Interrupt play commands:
  * force_wild_pitch - Force wild pitch interrupt (advances runners 1 base)
  * force_passed_ball - Force passed ball interrupt (advances runners 1 base)

- Jump roll testing commands:
  * roll_jump [league] - Roll jump dice for steal testing (1d20 + 2d6/1d20)
  * test_jump [count] [league] - Test jump roll distribution with statistics

- Fielding roll testing commands:
  * roll_fielding <position> [league] - Roll fielding dice (1d20 + 3d6 + 1d100)
  * test_fielding <position> [count] [league] - Test fielding roll distribution

All commands include:
- Rich terminal formatting with colored output
- Comprehensive help text and examples
- TAB completion for all arguments
- Input validation
- Statistical analysis for test commands

Jump rolls show:
- Pickoff attempts (5% chance, check_roll=1)
- Balk checks (5% chance, check_roll=2)
- Normal jump (90%, 2d6 for steal success)

Fielding rolls show:
- Range check (1d20)
- Error total (3d6, range 3-18)
- Rare play detection (SBA: d100=1, PD: error_total=5)

Testing commands provide:
- Distribution tables with percentages
- Visual bar charts
- Expected vs observed statistics
- Average calculations

Files modified:
- terminal_client/commands.py: Added 6 new command methods
- terminal_client/repl.py: Added 6 new REPL commands with help
- terminal_client/completions.py: Added TAB completion support
2025-11-04 13:54:51 +00:00
..
update_docs CLAUDE: Refactor game models and modularize terminal client 2025-10-28 14:16:38 -05:00
__init__.py CLAUDE: Add interactive terminal client for game engine testing 2025-10-26 12:51:01 -05:00
__main__.py CLAUDE: Add interactive terminal client for game engine testing 2025-10-26 12:51:01 -05:00
arg_parser.py CLAUDE: Refactor game models and modularize terminal client 2025-10-28 14:16:38 -05:00
CLAUDE.md CLAUDE: Implement player models and optimize database queries 2025-10-28 14:08:56 -05:00
commands.py CLAUDE: Add interrupt plays, jump roll, and fielding roll testing commands to terminal client 2025-11-04 13:54:51 +00:00
completions.py CLAUDE: Add interrupt plays, jump roll, and fielding roll testing commands to terminal client 2025-11-04 13:54:51 +00:00
config.py CLAUDE: Add interactive terminal client for game engine testing 2025-10-26 12:51:01 -05:00
display.py CLAUDE: Implement player models and optimize database queries 2025-10-28 14:08:56 -05:00
help_text.py CLAUDE: Add manual outcome testing to terminal client and Phase 3 planning 2025-10-29 20:53:47 -05:00
main.py CLAUDE: Refactor game models and modularize terminal client 2025-10-28 14:16:38 -05:00
repl.py CLAUDE: Add interrupt plays, jump roll, and fielding roll testing commands to terminal client 2025-11-04 13:54:51 +00:00