client can now only play allowed cards
This commit is contained in:
+7
-1
@@ -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,
|
||||
}),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user