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