Skip to content

Corg-Labs/boids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Boids

Boids flocking simulation in the terminal, in C.

A small, self-contained demo written in pure C — no external libraries, just the standard library and POSIX. Part of the Corg-Labs collection of single-file C programs.


How It Works

  1. Each agent looks at neighbours within a radius
  2. Three rules apply: separation, alignment and cohesion
  3. Speed is clamped so the flock moves coherently
  4. Direction is drawn as an arrow glyph

Build

gcc boids.c -o boids -lm

Run

./boids

Controls

Press Ctrl-C to quit.

About

► Boids flocking simulation in the terminal, in C.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages