Complex Adaptive Systems Lab

Interactive ASCII Boids Flocking Simulation • Real-time Emergent Dynamics

This laboratory demonstrates a Complex Adaptive System (CAS) in action. Move your mouse or click to perturb the school. Observe how the decentralized agents rapidly disperse, transmit acoustic alarm signals, and re-cohere into tight, self-organizing aquatic structures.

Simulation Presets

Parameter Tuning

Emergent Phenomena to Observe

  1. Information Shockwaves: When you quickly flick the cursor through a cluster, only the nearest fish directly perceive the predator. However, their sudden evasive acceleration breaks alignment with neighbors, triggering a visible cascade that sweeps across the entire school.
  2. Vortical Swirls & Gyres: When boundary steering balances with cohesion, fish naturally transition into rotating toruses (baitballs), minimizing perimeter exposure.
  3. Kinematic Undulation: Each ASCII creature dynamically speeds up its harmonic tail flapping frequency proportional to its instantaneous velocity $\mathbf{v}$.

Read the mathematical foundation in the Flocking Theory Essay →