Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
}
|
| 158 |
-
|
| 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':
|