game now correctly rotates through plays and goes to the next rounds when all cards have been played

This commit is contained in:
2025-07-15 19:38:27 +02:00
parent 231e861416
commit e0cea82394
6 changed files with 60 additions and 10 deletions
+10 -3
View File
@@ -232,9 +232,6 @@ class LobbyManager:
"client_id": client_id,
}),
)
def get_next_client(self, lobby_id, client_id) -> str:
pass
#endregion
@@ -421,6 +418,16 @@ async def process_input(message: str, websocket) -> None:
-1,
)
elif data_object["response"] == "start_next_play":
lobby_id = data_object["lobby_id"]
await lobby_manager.send_message(
lobby_id,
lobby_manager.get_lobby(lobby_id).client_playing_order[0],
json.dumps({
"response": "request_card",
}),
)
# Start next round (host only)
elif data_object["response"] == "start_next_round":
lobby_id = data_object["lobby_id"]