add logic for screensaver

This commit is contained in:
Aidan Haas
2025-07-10 15:19:28 -04:00
parent 5032b3c7d1
commit 8a14be321e
2 changed files with 61 additions and 23 deletions
+3 -1
View File
@@ -51,8 +51,10 @@ def status():
@app.route("/start", methods=["GET"])
def start_game():
players = game_state["players"]
game_state["gameActive"] = True
socketio.emit("player_update", {"players": game_state["players"]})
current_player = players[game_state["playerTurn"]]
socketio.emit("player_update", {"nextPlayer": current_player})
return jsonify(game_state)