Article · Published December 3, 2026
What training an AI really means, shown with sixty cars
"We trained an AI" is said so often that it has stopped meaning much. So I built the smallest honest example I could: sixty cars that start out knowing nothing and learn a race track in front of you, in a browser tab. Nobody shows them how to drive.

Ninety numbers and no instructions
Each car is steered by a tiny neural network. It reads eight values: seven distance sensors pointing ahead and to the sides, and its own speed. It answers with two: how much to steer and how hard to press the pedal. In between sit ninety numbers, and those ninety numbers are the whole driver.
In the first generation the numbers are random, and a random driver is a bad one: it wanders, stalls or leaves the road. But a few happen to get further than the others.
Try, score, keep what works
When every car has stopped, each one gets a score: how far along the track it got, with a bonus for finishing sooner. The four best go to the next generation unchanged. The other fifty-six are mixes of two good cars, with small random changes.
That is all the learning there is. Nobody writes a rule about corners or braking. The only rule is the score, and the rest is repetition.
What I measured
I ran it twenty times from twenty different random starts. A car reached the finish line in all twenty. The middle run got there at generation 7, the quickest at generation 4 and the slowest at generation 13.
The times keep improving afterwards: by generation 40 the best time was between 44 and 49 seconds in every one of those runs. The track is 1,137 metres long and comes from JP Racing, a racing game I built. Its 3D model is by Batuhan13, under a CC BY 4.0 licence.
What it is not
This is evolution, one of the simplest ways to train a network. The large language models behind tools like Claude are trained with a different method and at a vastly larger scale. What they share with these cars is the shape of the process: a way to score an attempt, and a very large number of attempts.
There is no training data here and no graphics card doing the learning. The simulation is plain JavaScript, and the 3D view is only there so you can watch.
What this means for a business project
Training needs two things: a score a computer can calculate, and attempts that are cheap. A car on a simulated track has both. Many business problems have neither: there is no formula for a good answer to a customer, and every real attempt costs something.
That is why the AI chat on this site involves no training at all: an existing model is given clear instructions, the right information and firm limits. Training your own model is worth discussing when you hold many examples of the right answer and an existing model demonstrably fails on them. It is rarely the first step.
Watch it learn
Learn to Drive is live at jewgah.github.io/learn-to-drive, and the code is public on my GitHub. Set the speed to 64x to skip ahead, switch to the whole-track view, and watch the diagram of the leading car's network light up as it drives.
Adding ?seed=7 to the address replays the same run every time, which is how I could measure it.
Want something like this?
Tell me what you are building, or what you are still doing by hand, and I will tell you how I would approach it. No commitment.