shortdeck1.4:hand card display fix

This commit is contained in:
2025-10-14 13:26:59 +08:00
parent 8f30e75e1a
commit e2cf510d34
13 changed files with 249 additions and 25 deletions

View File

@@ -114,6 +114,15 @@ def get_game_state(player_id):
return state
@app.get("/info/{player_id}", response_model=Dict[str, Any])
def get_info(player_id: int):
try:
state = GAME.info(player_id)
return state
except Exception as e:
raise HTTPException(status_code=500, detail=str(e)) from e
@app.post("/apply_action", response_model=Dict[str, Any])
def apply_action(req: ActionRequest):
try: