Self-driving sim in pure NumPy: 9 raycasts + genetic algorithm clears unseen track

rsasaki0109 · x · 2026-08-29

Detailed writeup of the ApexDrive project: a self-driving simulation in pure NumPy + Pygame that cleanly completes an unseen 5,000px track with 5 obstacles, hairpins and chicanes. Key points:

The author says writing the vector math, line intersections and evolution logic from scratch made autonomous-control mechanics far clearer than calling library abstractions. Code is open-sourced on GitHub.

Original post →

More from coding & agent

coding & agent channel →