Hey There!

This is a simple physics body simulation with variables tuned at a discrete timestep using a genetic algorithm technique.

The moving bodies are initialized with random attraction/repulsion towards red and green blobs. Eating a red blob loses health, whereas eating a green blob heals. Healthier bodies are more likely to be selected to breed into the next generation. Small mutations are made on the attraction/repulsion weights at evolve time.

You can change parameters of the system using the text boxes.

You can click "Reset" to reset the simulation (you need to do this to make new system parameters take effect).

You can click "Show Debug Info" to show a visual debug display.