Evolution Simulation

I wanted to create a space where I could observe if and how creatures change over time in order to survive. The idea was to simulate natural selection of traits: speed, size, and sense.

Speed controls the rate at which a creature can move around and search for food.

Size controls if they can eat other creatures.

Sense controls the radius of the area the creature can sense around them.

Movement cost is calculated as size3 + speed2 + sense

At each step, if a creature has enough energy, they move around and search for food in order to survive. If they sense a creature less than 30% of their size, they can eat them instead.

If they found more at least one piece of food, they survive the day.

If they found more than one piece of food, they generate another creature with traits similar to theirs.

The simulation ends when no creature survives the day.

Demo

Source is here

Back to all posts