wtf
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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')
|
||||
Reference in New Issue
Block a user