In this (very long) Coding Challenge, I implement a genetic algorithm from scratch and create “smart rockets” (based on a simulation by Jer Thorp). The rockets evolve the “best” path to a target, moving around obstacles.

Support this channel on Patreon:

Send me your questions and coding challenges!:

Jer Thorp’s Smart Rockets:


Source Code for the Video Lessons:


For More Genetic Algorithm videos:

For More Coding Challenges:

Help us caption & translate this video!