From bddd28d5fdb80f2b93172e79615d663b0295c18b Mon Sep 17 00:00:00 2001 From: Vincent Poulailleau Date: Fri, 12 Apr 2024 11:51:36 +0200 Subject: [PATCH] display team names --- space_collector/game/server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/space_collector/game/server.py b/space_collector/game/server.py index a166ed5..84e546f 100644 --- a/space_collector/game/server.py +++ b/space_collector/game/server.py @@ -43,7 +43,10 @@ def _wait_connections(self: "GameServer") -> None: sleep(1) for second in range(1, server_connection_timeout + 1): - print(f"Waiting other players ({second}/{server_connection_timeout})") + names = [player.name for player in self.players] + print( + f"Waiting other players ({second}/{server_connection_timeout}) {names}" + ) if len(self.players) == MAX_NB_PLAYERS: break sleep(1)