All AI games
🏎️
NEAT

Car Racing AI — NEAT + Raycast Sensors

How 30 cars evolve to drive a track using 8 raycast distance sensors and NEAT neuroevolution.

Play the game

How the AI works

Thirty cars evolve with NEAT. Each car is a neural network that steers and accelerates; the population improves through selection and mutation rather than gradient descent.

Inputs → outputs

  • Inputs: 8 raycast sensors measuring the distance to the track edges, plus current speed.
  • Outputs: steering (left/right) and throttle.

Evolution loop

Cars that drive farther without crashing earn higher fitness. The best are bred and mutated; speciation protects new strategies long enough to mature.

What you see on screen

The raycast lines glow from each car in real time, so you can see exactly what the network "senses" before it decides how to steer.

Need an AI engineer or data scientist?

I build custom ML models, AI agents, computer vision, and automation — from idea to production.