Smart Rocket
An example which demonstrates the usage of the math classes Vector2 and Random.
Run it here
Every rocket flies by its own random genes. After each generation the rockets that came closest to the target have the most children, and the swarm learns to find it. Hold the mouse down to move the target.
To run it on your own computer, copy the folder assets of the
source code next to the program.