Flocking simulation in python based on the boid model developed by Craig Reynolds.
https://en.wikipedia.org/wiki/Boids
Run main.py
Left-click to place an obstacle for the boids to avoid. They will also avoid your mouse.
Right-click to add more boids.