incognitolm commited on
Commit
8844ca6
·
verified ·
1 Parent(s): 1200809

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -147,14 +147,14 @@ async def handle_action(request: Request):
147
  # return {"success": False, "message": "You don't have enough coins to assassinate another player."}
148
  if game["turn"] != player:
149
  return {"success": False, "message": "Not your turn."}
150
- game["challenge"] = {
151
- "action": "assassin",
152
- "challenger": player,
153
- "target": target,
154
- "challengeType": "assassin",
155
- "status": "pending",
156
- "phase": "target_decision"
157
- }
158
  player_data["coins"] -= 3
159
  return {"success": True, "message": f"Assassin action initiated by {player} targeting {target}. Awaiting target's response."}
160
 
 
147
  # return {"success": False, "message": "You don't have enough coins to assassinate another player."}
148
  if game["turn"] != player:
149
  return {"success": False, "message": "Not your turn."}
150
+ # game["challenge"] = {
151
+ # "action": "assassin",
152
+ # "challenger": player,
153
+ # "target": target,
154
+ # "challengeType": "assassin",
155
+ # "status": "pending",
156
+ # "phase": "target_decision"
157
+ # }
158
  player_data["coins"] -= 3
159
  return {"success": True, "message": f"Assassin action initiated by {player} targeting {target}. Awaiting target's response."}
160