Genetic algorithm evolves a better car in Flash


Matthew sez, "This is a GA I wrote to design a little car for a specific terrain. It runs in real-time in Flash.

The fitness function is the distance travelled before the red circles hit the ground, or time runs out. The degrees of freedom are the size and initial positions of the four circles, and length, spring constant and damping of the eight springs. The graph shows the 'mean' and 'best' fitness."

Genetic Algorithm

(Thanks, Matthew!)