fix player leaving in his turn with empty lobby
This commit is contained in:
parent
ce506e90ed
commit
41ca3b2747
@ -183,8 +183,9 @@ class Game:
|
|||||||
self.players[self.turn].play_turn()
|
self.players[self.turn].play_turn()
|
||||||
|
|
||||||
def next_turn(self):
|
def next_turn(self):
|
||||||
self.turn = (self.turn + 1) % len(self.players)
|
if len(self.players) > 0:
|
||||||
self.play_turn()
|
self.turn = (self.turn + 1) % len(self.players)
|
||||||
|
self.play_turn()
|
||||||
|
|
||||||
def notify_scrap_pile(self):
|
def notify_scrap_pile(self):
|
||||||
print('scrap')
|
print('scrap')
|
||||||
|
Loading…
Reference in New Issue
Block a user