Code which randomly mutates in a virtual environment of 100x100 squares with a random distribution of food. If the code doesn't eat, it dies. The code which lives the longest is saved.