Boids

Boids algorithm is an artificial life algorithm proposed by Craig Reynolds in 1986, used to simulate the behavior of bird flocks, fish schools, etc. Boids algorithm simulates the interaction between individuals to achieve collective behavior of the group.

Terminology

In the Boids algorithm, we have the following terminology:

Rules

In the Boids algorithm, we have the following rules:

Demo

Here is a demo of the Boids algorithm. You can adjust the parameters to see how the boids behave.

Count:
1
Perception:
0
Separation:
0
Cohesion:
0
Alignment:
0
Highlight:

Interesting things

Actually, I think these three rules also exist in human society to some extent. So we can run some interesting experiments, such as: