Skip to content

Commit

Permalink
even cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
quaquel committed Sep 21, 2024
1 parent 54ffc09 commit 1538310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/WolfSheep/wolf_sheep.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, model, energy, p_reproduce, energy_from_food):

def random_move(self):
"""Move to a random neighboring cell."""
self.move_to(self.cell.get_neighborhood().select_random_cell())
self.move_to(self.cell.neighborhood.select_random_cell())

def spawn_offspring(self):
"""Create offspring."""
Expand Down

0 comments on commit 1538310

Please sign in to comment.