incognitolm commited on
Commit
e3bf006
·
verified ·
1 Parent(s): ba0cd2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -147,15 +147,15 @@ 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
 
161
  if action == 'duke':
 
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
 
161
  if action == 'duke':