From 0b89d9127b8788de29a044eb19a4971c93991bd9 Mon Sep 17 00:00:00 2001 From: Jonas Zeunert Date: Thu, 1 Sep 2022 02:43:16 +0200 Subject: [PATCH] wtf --- GameState.py | 2 +- lamps/Lamp.py | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/GameState.py b/GameState.py index 768fca2..1c31a2a 100644 --- a/GameState.py +++ b/GameState.py @@ -46,12 +46,12 @@ class GameState: if highestScorePlayer.points < player.points: highestScorePlayer = player - if highestScorePlayer: self.highscore = highestScorePlayer.points for player in self.playerList: player.hasHighscore = False highestScorePlayer.hasHighscore = True + logging.info("New Highscore from Player" + str(highestScorePlayer.id)) def startGame(self, playerCount): self.isStarted = True diff --git a/lamps/Lamp.py b/lamps/Lamp.py index 3add06f..9d9c662 100644 --- a/lamps/Lamp.py +++ b/lamps/Lamp.py @@ -14,4 +14,15 @@ class Lamp: networking.getLamps(self) CREDIT = Lamp('Credit') -SHOOT_AGAIN = Lamp('Ball') \ No newline at end of file +SHOOT_AGAIN = Lamp('Ball') + +HIGHSCORE = Lamp('Highest Score') +GAMEOVER = Lamp('Game Over') +TILT = Lamp('Tilt') +MATCH = Lamp ('Match') +BALL_TO_PLAY = Lamp('Ball To Play') +UP = Lamp('UP') +DOWN = Lamp('Down') +BALL = Lamp('Ball') +MAN = Lamp('Man Speech Lamp') +WOMAN = Lamp('Woman Speech Lamp') \ No newline at end of file