This commit is contained in:
Jonas Zeunert
2022-09-01 02:43:16 +02:00
parent f5f292e560
commit 0b89d9127b
2 changed files with 13 additions and 2 deletions

View File

@@ -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

View File

@@ -15,3 +15,14 @@ class Lamp:
CREDIT = Lamp('Credit')
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')