The program uses a genetic algorithm to evolve two-wheeled shapes into cars over generations, similar to BoxCar2D but written from scratch. The seed can be saved and restored, and surprising drawing toggles make the simulation faster. A new population can be generated and a seed can create the same track for competition with friends. Elite clones, mutation rate, and mutation size can be adjusted, and the genome consists of shape, wheel size, wheel position, wheel density, and chassis density. The terrain becomes more complex with distance. The code is on GitHub for contributions. The author notes that the best car may not always perform well due to non-determinism.
https://rednuht.org/genetic_cars_2/