Lab / 002
Teach a car the line.
A population of simulated cars learns to drive this circuit by neuroevolution. Each small neural network directly controls steering and throttle or braking; the ideal line is computed separately for comparison, never supplied to the drivers. The cars that travel furthest are selected, crossed, and mutated across generations.
Track of the week
Finding this week’s race…
Preparing the simulation…
No AI lap yet · ideal-line estimate available when the simulation starts.
Fitness by generation
Lap-equivalent fitness · Best AverageHow it learns
A network drives; evolution selects.
Each car receives seven forward distance rays, its speed, three centerline-curvature samples, heading errors to points ahead, and its lateral offset. Its neural network directly selects steering and throttle or brake; it receives no data from the ideal line. The cars that travel furthest between crashes are selected by tournament, crossed, and mutated; most offspring test the furthest checkpoint while some restart from the start. Completing a full start-to-finish lap is required for a simulated lap time.
The thin blue path is a separately computed line that smooths cornering within modeled track limits, then estimates speed from grip, acceleration, and braking. Track width is 15 metres nominally, narrowed at tight bends and overlapping sections. Vehicle handling is intentionally simplified; lap times and the ideal-line comparison are simulated, not real-world records.
About the data
Mapped from real circuits.
Circuit outlines © 2019–2025 Tomislav Bacinger, from the f1-circuits project (MIT License). This subset was projected to local metres, locally smoothed at tight sampled corners for the simplified car model, and resampled for visualization. Calendar data is loaded from Jolpica at build time; a committed snapshot keeps the page available when that request is offline.
The labels use plain text references to Formula 1. This independent experiment is not affiliated with or endorsed by any racing series.

