wtf
This commit is contained in:
@@ -46,12 +46,12 @@ class GameState:
|
|||||||
if highestScorePlayer.points < player.points:
|
if highestScorePlayer.points < player.points:
|
||||||
highestScorePlayer = player
|
highestScorePlayer = player
|
||||||
|
|
||||||
|
|
||||||
if highestScorePlayer:
|
if highestScorePlayer:
|
||||||
self.highscore = highestScorePlayer.points
|
self.highscore = highestScorePlayer.points
|
||||||
for player in self.playerList:
|
for player in self.playerList:
|
||||||
player.hasHighscore = False
|
player.hasHighscore = False
|
||||||
highestScorePlayer.hasHighscore = True
|
highestScorePlayer.hasHighscore = True
|
||||||
|
logging.info("New Highscore from Player" + str(highestScorePlayer.id))
|
||||||
|
|
||||||
def startGame(self, playerCount):
|
def startGame(self, playerCount):
|
||||||
self.isStarted = True
|
self.isStarted = True
|
||||||
|
|||||||
@@ -15,3 +15,14 @@ class Lamp:
|
|||||||
|
|
||||||
CREDIT = Lamp('Credit')
|
CREDIT = Lamp('Credit')
|
||||||
SHOOT_AGAIN = Lamp('Ball')
|
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