ambigious
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
class GameState:
|
class GameState:
|
||||||
def __init__(self, players, highscore, currentPlayer = 1):
|
def __init__(self, players, highscore, currentPlayerID = 0):
|
||||||
self.players = players
|
self.players = players
|
||||||
self.currentPlayer = currentPlayer
|
self.currentPlayerID = currentPlayerID
|
||||||
self.highscore = highscore
|
self.highscore = highscore
|
||||||
|
|
||||||
def currentPlayer(self):
|
def currentPlayer(self):
|
||||||
return self.players[0]
|
return self.players[self.currentPlayerID]
|
||||||
|
|
||||||
def setCurrentPlayer(self, playerId):
|
def setCurrentPlayer(self, playerId):
|
||||||
if(playerId > len(self.players)):
|
if(playerId > len(self.players)):
|
||||||
|
|||||||
Reference in New Issue
Block a user