Labs · Evolutionary Computing

Evolving Steering: Food vs Poison

Evolving Steering: Food vs Poison simulation

Each vehicle's DNA holds four numbers: how strongly it is attracted to food, how strongly to poison (negative = repelled), and how far it can see each one. Health drains over time. Food restores it, poison hurts. Healthy vehicles occasionally clone themselves with small mutations, and dead ones leave food behind.

There is no explicit fitness function. Survival is fitness. Over time the average food weight drifts up and the poison weight drifts negative: the population learns to avoid poison. The chart tracks both.

Turn on debug to see each vehicle's perception radii (green = food, red = poison) and its steering weights.

Controls

Evolved from Smart Rockets.