Set ready to false at Player creation
release-tag / release-image (push) Successful in 17s

This commit is contained in:
2024-05-13 14:54:37 +02:00
parent f29232dd61
commit 127da9e8c6
+2 -1
View File
@@ -30,7 +30,7 @@ class Player(Serializable):
game: "Game"
turn: Turn
ready: bool = False
ready: bool
def __init__(self, game: "Game", username: str, team: Team) -> None:
super().__init__()
@@ -42,6 +42,7 @@ class Player(Serializable):
self.team = team
self.username = username
self.turn = Turn(self)
self.ready = False
def serialize_guest(self) -> dict:
"""Get data available to the public"""