Genetic Algorithm used to build a car with the Box2D physics library.

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
I've gotten 417 in the twelfth or so gen; after that, every single gen averaged 208.5; it's a stupidly annoying curve, and it might be what Snark described.

wCrh5.png


EDIT: I'm an idiot, didn't realise that a new track is generated every gameload.
 
Last edited:
Feb 14, 2008
1,051
931
One of mine got to 500 on the 5th generation or so. Guess I had an easy track.

I also tried 0% for a while, and though it's obviously not as good at making a vehicle, as with mutation, but there's enough variety in the initial gene pool to eventually reach the standard-ish model.

For posterity, this should be redone with quicker animations/physics, and 5 different tests on new randomly generated tracks for each generation, rather than the same one. At the moment they're being trained to traverse one particular track.
 
Last edited:

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
The one thing i dislike about this is that several potentially successful car designs were spawned vertically and fell over backwards despite the fact the over all design was far superior to the others that can't get past the first bump.

Mine are looking like motorbikes: (mutation rate was 5%, but i just boosted it to 10%)
bikeb.jpg


There's a dip at about the 100 mark that just causes all evolutions to flip onto their back. Also i wish it would rotate the front suspension. It doesn't seem to realise there's a problem there because the front wheel spends a lot of the time in the air it doesn't snag until 60 or 100 metres.
 
Last edited:

drp

aa
Oct 25, 2007
2,273
2,628
i left mine running over night a few days ago. it got up to generation 30

it built a transformer and popped out of my screen.
 

Mr. P. Kiwi

L5: Dapper Member
Nov 22, 2009
244
95
Mine are built for spikes:
car.jpg

Oh, evolution.
 

Mr. Happy

L6: Sharp Member
Jul 16, 2008
320
158
Around 22 to 24 generations the cars plateued, always reaching either 157.5 units or 159.9 and reusing the same design over and over. Then generation 25 hit and suddenly they were all mutant rejects that just flopped around and failed haha.
 

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
KV5mt.png

the bestest

Also, that page ate my Firefox.
 

Ravidge

Grand Vizier
aa
May 14, 2008
1,544
2,818
It was doing so well... then it encountered a hole that just couldn't be defeated.
SS-2011.01.29-01.23.59.png


Always dived right in headfirst and lost all speed, didn't get any grip with the backwheel and got stuck.
 

RavenStryker

Former Alias: †Blade†/Xi.Cynx
aa
Nov 25, 2008
782
844
I don't have this "max wheels" or "frequency" or "Framerate" OR Up/Down buttons on mine... odd
On a side note, As you can see from the graph, it seems to have encountered a rough part as well.
I think if the track segments where 1/2 the size it would make this much better.

CarGenerationStuck.png
 

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
Blade, use Icky's link (last post on the previous page).

IN OTHER NEWS
SeSe6.png
 
Last edited:

sniprpenguin

L6: Sharp Member
Mar 14, 2008
266
258
More wheels = more power.

Seriously, one time I bumped it up to 8 max and the damn things were just wheels. There was no way it could get stuck.

I tried it at one wheel, but seeing 25 generations with a high of 15 was depressing.