Labs · Neuroevolution
Neuroevolution: Self-Driving Cars
Each car sees the world through five distance sensors (ray casts against the track walls) plus its own speed. Those 6 numbers feed a small neural network whose two outputs are steering and throttle.
Unlike the ecosystem demo, this is generational. All cars drive at once, a car dies when it hits a wall or stops making progress, and fitness is how far along the track it got. The best drivers survive unchanged (elitism) and mutated copies of good drivers fill the next generation.
Once cars complete laps, press "New track" to see if the evolved brains generalise to a road they have never seen.
Controls
- Cars per generation
- Mutation rate
- Simulation speed
- Track width
- Show sensors of leading car
- Road colour
- Car colour
Evolved from Neuroevolution Ecosystem.
Evolved into Neuroevolution: Rocket Landing.