CLAUDE: Fix terminal client import error in resolve_play command

Remove unused PlayResult creation code that had incorrect import path
and missing required fields. The forced outcome feature is experimental
and not yet implemented - the code was just showing warnings anyway.

Fixes ImportError when running 'resolve_with <outcome>' command.

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Cal Corum 2025-10-30 15:29:51 -05:00
parent b40465ca8a
commit ee94fcfa96

View File

@ -211,25 +211,6 @@ class GameCommands:
try:
if forced_outcome:
display.print_info(f"🎯 Forcing outcome: {forced_outcome.value}")
# Get current state for manual resolution
state = state_manager.get_state(game_id)
if not state:
display.print_error(f"Game {game_id} not found")
return False
# Manually create a play result with the forced outcome
from app.models.game_models import PlayResult
result = PlayResult(
outcome=forced_outcome,
description=f"Manual outcome: {forced_outcome.value}",
outs_recorded=1 if forced_outcome.is_out() else 0,
runs_scored=0, # Will be calculated by state update
hit_location=None,
runner_movements=[]
)
# Apply the result manually
# For now, just show what would happen
# TODO: Integrate with game_engine to properly apply forced outcomes
display.print_warning("⚠️ Manual outcome selection is experimental")
display.print_warning(" Using regular resolution for now (forced outcome noted)")