Boids
Boids.html is a swarm simulation, the birds follow these rules:
- Separation: steer to avoid crowding local flockmates
- Alignment: steer towards the average heading of local flockmates
- Cohesion: steer to move toward the average position of local flockmates
- Escape: steer away from the "eagle" aka mouse
- Border constraints, here the position is just turned down
NEW: GAME VERSION:
The algorithm is similar to the C++ version of this simulation.