Hi,

Here a Lite-C Demo of a DNA Creature Simulation,
that you can watch a population of "stick" animals evolve,
trying to move on the ground.




DNACreature.zip


DNA Creature


How to use it:

-start
-let the sim run for some time, as it needs time to evolve (there is not end to the sim)
-use SPACE to switch between slow and fast simulation
-use the mouse and the W,A,S,D keys to move the camera

This program simulates a virtual creature over several generations
using genetic programming, mutation, crossover etc.

The results are not as potent as I thought in the beginning,
using a "genetic programming" code.
There is actually an interpreter build in, that can run
a program, to controll the creature.
Though the creatues only use the very basic commands after some time.

A better approach will be later to switch to neural nets.


Some Facts:

-100 creatures per population
-genetic mutation
-sorting out the fittest creature for the next population
-genetic crossover for a part of the population
-physics engine
-creatures also have sensort for leg-contact with the ground, and legmovement


Feel free to experiement in the code by changing some variables