Skip to content

Generative Design algorithm for crawling and reproducing ants

License

Notifications You must be signed in to change notification settings

fdb/wandering-ants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wandering Ants

Simple algorithm for crawling and reproducing ants, initially designed for a NodeBox workshop. Each time two ants meet, they produce offspring. However, nobody dies, so the population grows explosively.

Screenshot

Video

Building (OS X, with Homebrew)

brew install sdl2
./build.sh

Running

./ants

Note that, because none of the ants die, the algorithm will keep on generating new ants, grinding the algorithm to a halt. That's sort of the point.

Hacking

The src/ants.c file has a number of #define you can tweak to your heart's content. Try changing the RANDOM_SEED.

To save out an image sequence, set SAVE_FRAME to 1. Frames will be saved out in TGA format in the OUT_DIRECTORY.

Thanks

The project uses the SDL, STB and NanoVG libraries.

License

This project is licensed under the MIT License.

About

Generative Design algorithm for crawling and reproducing ants

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published