cards are now distributed and displayed among all clients
This commit is contained in:
+4
-2
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user