Skip to content

Commit

Permalink
Update flocking.py
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbeta1 authored Feb 26, 2024
1 parent 944001c commit 4634e36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/Flocking/flocking.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(
separation: Minimum distance to maintain from other Boids.
cohere: the relative importance of matching neighbors' positions
separate: the relative importance of avoiding close neighbors
match: the relative importance of matching neighbors' headings
match: the relative importance of matching neighbors' directions
"""
super().__init__(unique_id, model)
Expand Down Expand Up @@ -131,7 +131,7 @@ def __init__(

def make_agents(self):
"""
Create self.population agents, with random positions and starting headings.
Create self.population agents, with random positions and starting directions.
"""
for i in range(self.population):
x = self.random.random() * self.space.x_max
Expand Down

0 comments on commit 4634e36

Please sign in to comment.