Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -143,8 +143,8 @@ async def handle_action(request: Request):
|
|
| 143 |
return {"success": True, "message": f"Coup initiated by {player} targeting {target}."}
|
| 144 |
|
| 145 |
if action == 'assassin':
|
| 146 |
-
if player_data["coins"] < 3:
|
| 147 |
-
|
| 148 |
if game["turn"] != player:
|
| 149 |
return {"success": False, "message": "Not your turn."}
|
| 150 |
# game["challenge"] = {
|
|
|
|
| 143 |
return {"success": True, "message": f"Coup initiated by {player} targeting {target}."}
|
| 144 |
|
| 145 |
if action == 'assassin':
|
| 146 |
+
# if player_data["coins"] < 3:
|
| 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"] = {
|