Genetic Algorithm Used to Build Car With Box2D
megaswf.com
megaswf.com
For problems where there is a natural way to express chromosomes, mutations, and crossover that captures interesting and relevant information GAs can be useful as an additional meta-heuristic.
Sometimes a random local search is exactly what the doctor ordered, of course, it's almost entirely trivial to code and especially if you tune the variance over time you can get pretty good results, though I'd agree that in general you can usually get better results in less computer time with a more typical algorithm (though you've still got to choose the algorithm, implement/integrate it, test it, etc., so you lose a lot of programming time unless it's already part of your framework).
Genetic algorithms should really shine when it's not clear how to cast the problem as a finite dimensional optimization problem, for instance if you're trying to evolve some constructive procedure to solve a problem rather than tweak variables to improve performance. You're absolutely right, aothman, most problems, even most problems specifically constructed to show off GAs, don't fit into this category, so there's no real point except that the algorithm sounds cool...
Except at least this doesn't create many cars unstable enough that the structure starts oscillating before shooting off to infinity. So I guess GA 1, Michael 0.
Our philosophy is basically to make flash games that don't suck! Goblin seems to have gotten quite a bit of attention over the past 72 hours or so.
I'm asking because I've been on an iPhone since this was posted and won't have access to a real machine until tomorrow so I cannot check the game out.
In other words, we lose a little on each hit, and make up for it with volume!
Here is one car that I got in generation 10: http://i.imgur.com/J0kdV.png
It didn't do too well, but it reminded me of a [update] penny-farthing. This should be familiar to people living in Palo Alto: http://www.paloaltoonline.com/news/show_story.php?id=11781%3...
#0 : 6
#1 : 1.7
#2 : 0.5
#3 : 0.4
#4 : 0.9
#5 : 0
#6 : 2.6
#7 : 0
#8 : 0
#9 : 0
#10 : 0.4
#11 : 6.1
#12 : 0.2
#13 : 0.7
#14 : 1.7
#15 : 0
#16 : 0
#17 : 1.4
#18 : 0
#19 : 1.3
Average : 1.2
One of the cars from generation 43: http://i.imgur.com/95QvW.png
43rd generation (after hours of waiting!) #0 : 146.3
#1 : 211.6
#2 : 237
#3 : 235.8
#4 : 0
#5 : 128.4
#6 : 0
#7 : 0
#8 : 204.4
#9 : 137.7
#10 : 85.9
#11 : 208
#12 : 211.1
#13 : 36.3
#14 : 0
#15 : 202.8
#16 : 247
#17 : 239
#18 : 230.2
#19 : 139.5
Average : 145.1
One of the cars from generation 43: http://i.imgur.com/WZtZq.png
Now that's what I call evolution!