Evolution Simulator



Time:
Available Food:
Oldest Age:
Life Forms:

Predominant DNA:
Secondary DNA:


Instructions

Purpose

Each blue hexagon is a artificial life form containing simulated DNA in the form of computer code. Each green hexagon is food. Life forms must eat food to survive. If a life form eats enough food, it will produce a new life form. The DNS of the new life form has a chance of mutating. As the simulation continues, the amount of food decreases, leaving only the life forms with the best DNA to survive.

Display

Mutations

When a life contains over 500 points from eating food, it will produce a new child life form. The parent will give a third of its energy to its child. The new life form has a chance of mutation. When a mutation occurs, one or two lines of code are randomly added, removed or replaced. You many notice that predominant life forms may develop a large amount of junk code, that appears to serve no purpose, however junk code can serve a few purposes. Junk code can slow down the speed of a life form because it takes time to execute, which may be beneficial by allowing more food to drop before taking expensive actions like moving forward and eating. Junk code can also reduce the potential of harmful mutations by reducing the likelihood that beneficial lines of code are removed.

The Code

The DNA contains lines of executable code. Each life form contains a set of code, and a location of the next line of executable code. Each turn the next line of code executes. Once the code completes, it starts again from the top of the DNA.

Energy

When the simulation begins, each life form contains 100 points of energy. Food is dropped in the world randomly each turn. As the simulation progresses, less food is dropped each turn until it is very difficult for life to survive. Eaten food is converted into energy. Each line of code takes at least one point of energy to execute. Eating and moving forward take an additional 10 points of energy. If the energy stored in a life form drops to zero, the life form dies

About

We hope you enjoy this evolution simulator. Run the simulation several times to see if you your evolved life can live over 200,000 turns, and look at the different DNA algorithms that form. You will be surprised by the variety of algorithms that can evolve.

© , Michael Moosman, All Rights Reserved