Press 'run' to start
This is the demonstration script for the blog post: Genetic Hello World Algorithm
This script implements a simple genetic algorithm. See how the population responds to different mutation and chromosome probabilities, and what happens if you change the size of the population.
For example, change the crossover to 0, and you quickly evolve a population of identical clones.
Or change mutation to 0, and notice that you just can't get above a certain level of fitness.
The code hasn't been polished, but you might be able to derive some value from it. I'm releasing it to the public domain, so do with it as you will. Links back are appreciated.