This commit is contained in:
Thomas Forgione 2019-04-04 11:42:35 +02:00
parent 8f7d3e9714
commit 3ff55f281e
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 6 additions and 6 deletions

View File

@ -109,10 +109,10 @@ class Game:
(pp.position, pp.player.direction) = pp.player.next_position_and_direction(pp.position, id + 1, self.map())
except:
# An error occured during the evaluation of pp.player strategy
if id == 1:
self.winner = 2
elif id == 2:
if id == 0:
self.winner = 1
elif id == 1:
self.winner = 0
return False
@ -134,10 +134,10 @@ class Game:
pp.player.manage_event(event)
except:
# An error occured during the evaluation of pp.player strategy
if id == 1:
self.winner = 2
elif id == 2:
if id == 0:
self.winner = 1
elif id == 1:
self.winner = 0
return False
for (id, pp) in enumerate(self.pps):