In Part 5 of my genetic algorithm series I discuss how you can adapt the algorithm to for your own creative project. The key pieces are designing and implementing a custom “fitness function” as well as how you choose to encode your DNA (genotype vs phenotype).

Support this channel on Patreon:

Send me your questions and coding challenges!:


Links discussed in this video:
The Nature of Code:
Genetic Programming Mona Lisa:

Source Code for the Video Lessons:


For More Genetic Algorithm videos:

For More Nature of Code videos:

Steering behaviors:

Help us caption & translate this video!