Sketch #3 – Tiny Objects Whirling – Mona Safari

In this code, a genetic algorithm implemented from scratch created “these tiny objects,” which evolved to find the best path to a target, moving around obstacles. It was a very long code that took me a lot of time to analyze the core concept.

screen-shot-2022-10-18-at-11-16-10-am

Full-Screen Version

https://editor.p5js.org/Ms.vive/full/LGZ0P4bF5

Web Editor Version

https://editor.p5js.org/Ms.vive/sketches/LGZ0P4bF5