Boids is an arificial life program used for simulate flock of birds or fishes.
Each agent simulates three behaviors:
- Flock centering: Move toward the center of the flock.
- Collision avoidance: Avoid obstacles, including other Boids.
- Velocity matching: Align velocity (speed and direction) with neighboring Boids.
You can learn more in this book.