Home▸AI & Machine Learning▸Self-Organization: Swarm Intelligence (2D)

🐝 Self-Organization: Swarm Intelligence (2D)

A 2D boids-style swarm lab: separation, alignment and cohesion — three purely local rules — produce coordinated flocking with no central controller.

AI & Machine Learning2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-swarm-intelligence-training ↗ Open standalone

This 2D companion strips the swarm down to the three Reynolds boids rules that actually drive it: separation, alignment and cohesion, each computed only from neighbors inside a perception radius. Adjust the weight sliders and watch the swarm shift between scattered, milling and tightly aligned flocking — the telemetry panel tracks polarization (heading agreement), average speed, nearest-neighbor distance and cluster count in real time.

⚙ Under the hood

Boids-style 2D self-organization lab: local separation, alignment and cohesion forces (no central controller) produce emergent flocking, tracked via a live polarization and cluster-count readout.

swarm intelligenceboidsself-organizationemergent behaviorflocking

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)