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.
Full-Screen Version
https://editor.p5js.org/Ms.vive/full/LGZ0P4bF5
Web Editor Version