We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bafa14 commit 0d01a53Copy full SHA for 0d01a53
benchmarks/WolfSheep/wolf_sheep.py
@@ -84,7 +84,7 @@ def feed(self):
84
sheep = [obj for obj in agents if isinstance(obj, Sheep)]
85
if len(sheep) > 0:
86
sheep_to_eat = self.random.choice(sheep)
87
- self.energy += self.energy
+ self.energy += self.energy_from_food
88
89
# Kill the sheep
90
sheep_to_eat.die()
0 commit comments