Here you can see how the path of a moon lander is optimized using a genetic algorithm.
When you press "run 1x", 200 landers are created with random commands and fly through the level. Each line is the path of one lander. When you press the button again, the best landers are selected and used to create new landers.
The landers change color based on the score they achieve. In the beginning they are red or yellow, after a safe path was found they appear green.