cards are now distributed and displayed among all clients

This commit is contained in:
2025-07-15 11:31:01 +02:00
parent e7b53601c0
commit 3a22a4e95d
6 changed files with 40 additions and 39 deletions
+4 -2
View File
@@ -179,16 +179,18 @@ class LobbyManager:
trump = None
if cards["trump"]:
trump = cards["trump"]
cards.pop("trump")
for client_id in client_ids:
client_cards = cards[client_id]
# client_cards = cards[client_id]
print(cards)
await self.send_message(
lobby_id,
client_id,
json.dumps({
"response": "new_round_started",
"current_round": round,
"cards": client_cards,
"cards": cards,
"trump": trump,
"playing_order": playing_order,
})