Labs · Evolutionary Computing
Evolving Steering: Food vs Poison
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
- Starting vehicles
- Food spawn rate
- Poison spawn rate
- Mutation rate
- Steps per frame
- Debug: perception & weights
Evolved from Smart Rockets.