client can now only play allowed cards

This commit is contained in:
2025-07-18 14:10:39 +02:00
parent 2e83eea619
commit aef7778a4b
5 changed files with 152 additions and 2 deletions
+7 -1
View File
@@ -424,6 +424,12 @@ async def process_input(message: str, websocket) -> None:
elif data_object["response"] == "start_next_play":
lobby_id = data_object["lobby_id"]
await lobby_manager.broadcast_message(
lobby_id,
json.dumps({
"response": "begin_next_play",
}),
)
await lobby_manager.send_message(
lobby_id,
lobby_manager.get_lobby(lobby_id).client_playing_order[0],
@@ -487,7 +493,7 @@ async def process_input(message: str, websocket) -> None:
playing_client_id,
json.dumps({
"response": "request_card",
"round": lobby_manager.get_lobby(lobby_id).current_round
"round": lobby_manager.get_lobby(lobby_id).current_round,
}),
)