4 ms·
Boids, an artificial life program, which simulates flocking behavior of birds
- thomascountz 2y agoFor those interested, see Daniel Shiffman's Nature of Code[1], a book in which you go from simple "ant" simulations to "boid" flocking behaviors, and from physics simulation to machine learning, neuroevolution, and NEAT using p5.js for graphics. [1]: natureofcode.com
- mepian 2y agoThe original Boids program was developed by Craig Reynolds at Symbolics Graphics Division for their Lisp machines: https://youtu.be/xBniZYiyrb4 https://youtu.be/xBniZYiyrb4
- C-programmer 2y agoThe quintessential project for programming newbies. I implemented it when studying Haskell. https://github.com/vladov3000/boids-hs https://github.com/vladov3000/boids-hs
- m0d0nne11 2y agoI haven't yet read the article but my immediate reaction is that back around 1992 there used to be an X screensaver program that did pretty much exactly what's shown in that YT video and it was strictly algorithmic...
- garspin 2y agoI implemented it in the browser. For demo & src, see https://svelte.dev/playground/2c1bf42e0d2a4cebb38b907fa7f90a39?version=5.16.0 https://svelte.dev/playground/2c1bf42e0d2a4cebb38b907fa7f90a... Adjust separation, cohesion and alignment manually, or use the presets.
- Xen9 2y agoThe impressive recent ALSA either used graphically or actually Boids. I don't know which because there's too much information to go beyond surface even in impressive things.