Skip to content
Snippets Groups Projects
Commit 9a40da64 authored by Philip Maas's avatar Philip Maas
Browse files

Little Bugfix

parent d94e96c2
Branches
No related tags found
1 merge request!1Evaluations
...@@ -33,7 +33,7 @@ class Population: ...@@ -33,7 +33,7 @@ class Population:
def update(self): def update(self):
for walker in self.walkers: for walker in self.walkers:
# if the player has taken more steps than the best player needed to reach the goal, he's dead # if the player has taken more steps than the best player needed to reach the goal, he's dead
if walker.brain.step > self.max_steps: if walker.brain.step >= self.max_steps:
walker.dead = True walker.dead = True
else: else:
walker.update() walker.update()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment