shortdeck1.4:hand card display fix
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user