game now correctly rotates through plays and goes to the next rounds when all cards have been played
This commit is contained in:
+10
-3
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user