I wrote the original version of this nearly 20 years ago. Cool to see it still pop up here from time to time. Still runs in the browser thanks to Ruffle: https://peteshadbolt.co.uk/posts/ga/
I worked on Adobe’s Flash Player team at that time and I remember using your Flash movie as a test case. :)
Watch cars evolve using genetic algorithm
51–60 of 76 posts
Re: Watch cars evolve using genetic algorithm
#52Re: Watch cars evolve using genetic algorithm
#53Re: Watch cars evolve using genetic algorithm
#54> evolve random two-wheeled shapes into cars over generations Where I come from, we call two-wheeled automobiles motorbikes. Very cool simulation though!
Re: Watch cars evolve using genetic algorithm
#55It seems to always get into a rut where one design lucks out and dominates generation after generation, with no mutations producing anything even close to working. Like, the top ten don't change after hundreds of generations. Maybe this is just an attribute of genetic algorithms. They quickly zero in on something kind of good, and then get stuck at this local maxima. Or maybe I need to just play around with the Mutat…
Re: Watch cars evolve using genetic algorithm
#56Ok, that's proof evolution isn't real. lol
Re: Watch cars evolve using genetic algorithm
#57It inspired me to experiment with a genetic algorithm in "Self-parking car evolution":
Re: Watch cars evolve using genetic algorithm
#58So boxcar2d, but without flash. https://news.ycombinator.com/item?id=2196747
https://web.archive.org/web/20240428203838/http://boxcar2d.c...
Re: Watch cars evolve using genetic algorithm
#59It seems to always get into a rut where one design lucks out and dominates generation after generation, with no mutations producing anything even close to working. Like, the top ten don't change after hundreds of generations. Maybe this is just an attribute of genetic algorithms. They quickly zero in on something kind of good, and then get stuck at this local maxima. Or maybe I need to just play around with the Mutat…
Edit, I scrolled down and it covers the genome:
• Shape (8 genes, 1 per vertex)
• Wheel size (2 genes, 1 per wheel)
• Wheel position (2 genes, 1 per wheel)
• Wheel density (2 genes, 1 per wheel) darker wheels mean denser wheels
• Chassis density (1 gene) darker body means denser chassis
It basically lands on a two-wheeled medium-bodied shape and doesn't seem to make much progress after that. Power and speed would be interesting variations.
Re: Watch cars evolve using genetic algorithm
#60Funny how the landscape never changes, even though the generations come and go.