boids autonomous agent flocking simulation

Implementing Boids in JavaScript Canvas

Flocking simulations approximate the behaviors of birds, or fish, or whatever other agents might move and flock to one another. By giving each individual agent a simple set of rules to follow, very interesting and beautiful patterns will emerge in the flock. The flock will often appear to be moving as one single conscious organism, when in reality it is an emergent phenomenon caused by many smaller organisms’ following simple rules.