Boids

Boids is an arificial life program used for simulate flock of birds or fishes. Each agent simulates three behaviors:

You can learn more in this book.