Update: Start game event logic
This commit is contained in:
@@ -11,10 +11,15 @@ class GameState:
|
||||
self.credits = 3
|
||||
self.specialDisplay = specialDisplay
|
||||
self.specialDisplay.printCredits(self.credits)
|
||||
self.isPlaying = False
|
||||
PLAYER_LAMPS.activateNext()
|
||||
|
||||
def nextPlayer(self):
|
||||
nextPlayer = self.players[1].id
|
||||
if not self.isPlaying:
|
||||
self.isPlaying = True
|
||||
nextPlayer = self.players[0].id
|
||||
else:
|
||||
nextPlayer = self.players[1].id
|
||||
self.currentPlayer = nextPlayer
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user