game: add: max score win

This commit is contained in:
2024-02-27 17:05:30 +01:00
parent 18962ca144
commit 53b314c72b
5 changed files with 47 additions and 9 deletions

View File

@ -31,6 +31,12 @@ class Player(Spectator):
self.username: str = User.objects.get(pk = self.user_id).username
def eliminate(self):
self.disconnect(1000)
self.game.update_player(self)
def receive(self, data: dict):
detail: str = data.get("detail")