Oliver 'Oli' Cheng
← Back to projects
2026 live

Horse Flock Simulator

2D overhead herd simulation where local horse rules create natural moving formations across open green plains.

  • Astro
  • TypeScript
  • Canvas 2D
  • Agent-based simulation
  • Emergence systems

Problem

Flock intelligence is often described abstractly, but it is hard to feel how simple local rules can generate lifelike group behavior.

Solution

Built a real-time herd simulation where each horse follows primitive constraints: separation, alignment, cohesion, speed limits, and directional adaptation.

Impact

Makes emergent intelligence legible: no central planner, yet coordinated movement patterns appear and stabilize in real time.

Horse Flock Simulator is an art-and-systems project about emergence.

Open the live simulation: Horse Flock Simulator. Read the companion essay: Emergence in the Plains. Read the project philosophy: Philosophy of Horse Flock Simulator.

What each horse does

  1. Avoid collisions with nearby horses
  2. Match direction with local neighbors
  3. Stay near the group without collapsing into a clump
  4. Maintain a target speed band
  5. React to directional shifts in the local field

Why it matters

The herd behaves as if it has a shared intention, but no horse has a global plan. That tension mirrors larger systems: neurons in brains, tokens/activations in LLMs, and other distributed processes where coherent behavior emerges from local interaction rules.

Demo Mirror

Live Preview

Mini preview of the actual demo. Use the launch button for full-screen interaction.

Open Demo