Evolve a car

Looking for a nice demonstration of genetic algorithms? Here's a simulation that takes randomized connected collections of polygons and wheels and scores them for their ability to traverse a rugged 2D landscape. I tried it last night, and it gave me an assortment of very bad vehicles: for example, a lot of them were just polygonal lumps that fell flat and sat there, while some had an odd wheel here and there, but also pointy bits that acted as brakes, or wheels that pointed upward at the sky and did nothing at all. So I just left it running and went to bed.

This morning, I've got strange vehicles running races on my computer screen. Unsurprising, but still kind of cool.

More like this

Back in December, The Parable of the Polygons took social media by storm. It's a simple little demonstration of how relatively small biases can lead to dramatic segregation effects, using cute cartoon polygons.
Every few minutes I get an email from NASA telling me which button they've pressed on the Phoenix Robot, recently landed on Mars. And I'm only slightly exaggerating. OK, I'm exaggerating a lot. The latest: Phoenix has been commanded to move its arm: