• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 16:33
CEST 22:33
KST 05:33
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL21] Ro24 Preview Pt2: News Flash8[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy16ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20
Community News
Weekly Cups (March 23-29): herO takes triple6Aligulac acquired by REPLAYMAN.com/Stego Research8Weekly Cups (March 16-22): herO doubles, Cure surprises3Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool49Weekly Cups (March 9-15): herO, Clem, ByuN win4
StarCraft 2
General
What mix of new & old maps do you want in the next ladder pool? (SC2) Team Liquid Map Contest #22 - Presented by Monster Energy Aligulac acquired by REPLAYMAN.com/Stego Research Weekly Cups (March 23-29): herO takes triple herO wins SC2 All-Star Invitational
Tourneys
RSL Season 4 announced for March-April Sparkling Tuna Cup - Weekly Open Tournament StarCraft Evolution League (SC Evo Biweekly) WardiTV Mondays World University TeamLeague (500$+) | Signups Open
Strategy
Custom Maps
[M] (2) Frigid Storage Publishing has been re-enabled! [Feb 24th 2026]
External Content
Mutation # 519 Inner Power The PondCast: SC2 News & Results Mutation # 518 Radiation Zone Mutation # 517 Distant Threat
Brood War
General
ASL21 General Discussion Gypsy to Korea How Can I Add Timer & APM Count? A cwal.gg Extension - Easily keep track of anyone BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[ASL21] Ro24 Group E Azhi's Colosseum - Foreign KCM Escore Tournament StarCraft Season 2 [Megathread] Daily Proleagues
Strategy
Fighting Spirit mining rates What's the deal with APM & what's its true value Simple Questions, Simple Answers
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game General RTS Discussion Thread Darkest Dungeon
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread The Games Industry And ATVI European Politico-economics QA Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread Formula 1 Discussion Cricket [SPORT] Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1388 users

Genetic Algorithm to evolve cars!

Forum Index > General Forum
Post a Reply
1 2 3 4 5 6 7 Next All
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2011-01-24 01:03:00
January 23 2011 23:59 GMT
#1
My friend found this link, which is really cool to look at. It is using genetic algorithm to tune the traits of the car.

The attributes of the car are:
Shapes of the car body
Location of the wheel
Size of the wheel

The body of the car is made up with triangles, and I imagine the algorithm looks for the best combination of triangles of certain sizes.

There are many ways to look for the best combination of these attributes, one silly way is to simply go through all possible combinations. However, this is impractical because there are so many different combinations. What genetic algorithm does is sample a generation of cars, rank them by how far they can travel, and let the high-ranking cars exchange traits (mating) to form the next generation, then repeat. So all in all, genetic algorithm is nothing special or mystical, it is merely a way of finding a good combination of traits in a space of huge number of combinations. So you can call genetic algorithm a kind of "heuristic guided search".

I'll try to explain "mutation rate" here, this is my understanding:
At each generation's end, we're at the verge of developing the next generation. What can we do? Well, we know so far we'd like to take some top-ranking cars, and cross-over their traits. But, this has the danger of getting stuck. For instance, suppose in an unlikely event all of your cars start off identical to each other, then by crossing-over their traits, you actually gets nowhere. What the mutation rate is, then, it means that after the crossing-over, we get a trait for our new car. We then keep 95% of those traits, and replace 5% with something completely random. An intuitive way to think of it is this: You are 50% like your mother and 45% like your father and 5% like yourself, completely independent of your mother and father. Another way to look at it is mutation is the opposite of retention, the more mutation, the more likely you are going to discover new shapes of cars, and more likely you are going to FORGET what has worked well before. A 0% mutation will stop evolution altogether, by not exploring the unknown, whereas a 100% mutation is going to be completely chaotic, by not remembering what it has learned in the past.

I ran the webpage on my computer over 2 days, just to see how far it can get, it seems to hit a plateau of performance after awhile, here's a screenshot:
[image loading]

Here's the link to the webpage:
http://megaswf.com/serve/102223/

If you follow the first few generations, these car evolve really freaking fast, good "car-like" robots start to form around generation 8 or so for me, alongside with many retard shape cars

So run the webpage, and shere some screenshots!!!
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
uNiGNoRe
Profile Blog Joined June 2007
Germany1115 Posts
January 24 2011 00:14 GMT
#2
That is so cool, I'd love to see the code of this. But I don't really understand when the "test run" of a car stops. If they fall over it's ok to do a new run but sometimes it starts a new round for no reason.
gogogadgetflow
Profile Joined March 2010
United States2583 Posts
January 24 2011 00:15 GMT
#3
I think it starts a new round when it reaches a new best score or so. This is so cool I can't believe how fast it evolved to a "typical" car shape
Dacendoran
Profile Blog Joined June 2009
United States825 Posts
January 24 2011 00:18 GMT
#4
I was laughing my ass off at some of the terrible cars that came out of this thing, and my dad came in my room wondering what was so funny. Was a bit difficult to explain,
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2011-01-24 01:43:20
January 24 2011 00:22 GMT
#5
On January 24 2011 09:15 gogogadgetflow wrote:
I think it starts a new round when it reaches a new best score or so. This is so cool I can't believe how fast it evolved to a "typical" car shape


There are glitches of that program I think. It sometimes stop the test prematurely. It doesn't stop it when it reaches a new score because logically it's good to give the code more time to run so to attain an even higher score.
But yeah it evolves pretty fast haha

actually take it back. It stops as soon as it reach some high-score, i.e. we know for sure it is the best so far.
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
Selth
Profile Blog Joined July 2010
United States469 Posts
January 24 2011 00:31 GMT
#6
I feel like I'm watching evolution fail dramatically. lol Still interesting regardless.
rawb
Profile Joined September 2010
United States252 Posts
Last Edited: 2011-01-24 00:38:00
January 24 2011 00:35 GMT
#7
I've been watching it non stop trying to catch the one baller car that goes like 400, but so far I've seen a lot of unicycles flipping over haha

Edit - yeah like the post under me says, the ones that evolve an arch to prevent getting stuck and a little thing on the back to stop them from flipping back are kicking ass. this is awesome :D
uNiGNoRe
Profile Blog Joined June 2007
Germany1115 Posts
Last Edited: 2011-01-24 00:39:16
January 24 2011 00:36 GMT
#8
The funny thing is that these cars seem to develop a shape that prevents them from falling over.

Edit: Like this one [image loading]
betaben
Profile Blog Joined September 2007
681 Posts
January 24 2011 00:36 GMT
#9
the cause of the plateau on my box was a hill with a pinacle at distance 180; the cars needed a short wheelbase to get over the hill but a large wheel base to get there.
LittLeD
Profile Joined May 2010
Sweden7973 Posts
January 24 2011 00:36 GMT
#10
So, what does the mutation rate actually do?
☆Grubby ☆| Tod|DeMusliM|ThorZaiN|SaSe|Moon|Mana| ☆HerO ☆
type_d
Profile Joined January 2011
Australia20 Posts
January 24 2011 00:39 GMT
#11
Any idea what the mutation rate does?
betaben
Profile Blog Joined September 2007
681 Posts
January 24 2011 00:40 GMT
#12
On January 24 2011 09:36 LittLeD wrote:
So, what does the mutation rate actually do?

it's a measure of how much random changes in the car design are put in between generations. It may even be the setting of how much the settings of each car are 'jumbled up' between the cars in the genetic algorithm.
heishe
Profile Blog Joined June 2009
Germany2284 Posts
January 24 2011 00:40 GMT
#13
I'd guess it changes how much or how fast the different parts are changed. How intense they mutate, if you will.

If you value your soul, never look into the eye of a horse. Your soul will forever be lost in the void of the horse.
Kaasflipje
Profile Joined May 2010
Netherlands198 Posts
January 24 2011 00:40 GMT
#14
It doenst always evolve the same way. I have one window where it gets consistent ~175 after 6 generations and in the other one it still does retarded shit in generation 25.
Coutcha
Profile Joined November 2010
Canada519 Posts
January 24 2011 00:41 GMT
#15
Mutation rates?
This is what the world is for Making ELECTRICITY :D
Sufficiency
Profile Blog Joined October 2010
Canada23833 Posts
January 24 2011 00:42 GMT
#16
On January 24 2011 09:36 LittLeD wrote:
So, what does the mutation rate actually do?


Probably changes how fast the parameters changes and how wildly they change.
https://twitter.com/SufficientStats
uNiGNoRe
Profile Blog Joined June 2007
Germany1115 Posts
January 24 2011 00:42 GMT
#17
On January 24 2011 09:40 betaben wrote:
Show nested quote +
On January 24 2011 09:36 LittLeD wrote:
So, what does the mutation rate actually do?

it's a measure of how much random changes in the car design are put in between generations. It may even be the setting of how much the settings of each car are 'jumbled up' between the cars in the genetic algorithm.

Which means that a higher mutation rate yields more random looking results but gives the evolution a chance to create a car that deviates from the properties of its ancestors.
type_d
Profile Joined January 2011
Australia20 Posts
Last Edited: 2011-01-24 00:46:22
January 24 2011 00:44 GMT
#18
Mine just went from 90+ to less than 10 in about 4 generations. Seems like it began to regress through some bad traits that just kept popping up. I guess my cars needed an ice age to reset things.

Edit: This was on 100% mutation rate.
Vain
Profile Blog Joined October 2009
Netherlands1115 Posts
Last Edited: 2011-01-24 00:48:00
January 24 2011 00:46 GMT
#19
On January 24 2011 09:42 uNiGNoRe wrote:
Show nested quote +
On January 24 2011 09:40 betaben wrote:
On January 24 2011 09:36 LittLeD wrote:
So, what does the mutation rate actually do?

it's a measure of how much random changes in the car design are put in between generations. It may even be the setting of how much the settings of each car are 'jumbled up' between the cars in the genetic algorithm.

Which means that a higher mutation rate yields more random looking results but gives the evolution a chance to create a car that deviates from the properties of its ancestors.


Jeah, if you set mutation to 0 and you have retard cars, you keep getting retard cars. That also works the other way around. So if you set it higher you have more chance of getting better/worser cars

Note: the chance of getting better cars is a bit higher becouse that's what the game selects on but with a higher mutation rate you also get a greater chance of getting worse cars
Battle.net 2.0 is a waiter and he's a dick
Coutcha
Profile Joined November 2010
Canada519 Posts
January 24 2011 00:47 GMT
#20
i do not understand the graphic and color o the car is there a meaning ?
This is what the world is for Making ELECTRICITY :D
1 2 3 4 5 6 7 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 3h 27m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech136
Hui .88
StarCraft: Brood War
Calm 4046
Mini 937
Horang2 588
EffOrt 443
firebathero 269
BeSt 195
Soulkey 176
actioN 148
Dewaltoss 110
hero 46
[ Show more ]
Backho 33
910 21
IntoTheRainbow 7
Dota 2
monkeys_forever176
capcasts60
Counter-Strike
fl0m1457
byalli715
minikerr8
Heroes of the Storm
Liquid`Hasu478
Other Games
summit1g8727
gofns8516
Grubby3109
FrodaN2084
Beastyqt706
RotterdaM331
Fuzer 159
ArmadaUGS145
C9.Mang0136
ToD68
Trikslyr45
KnowMe44
ZombieGrub30
Organizations
StarCraft 2
angryscii 41
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• blackmanpl 58
• sM.Zik 2
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV753
• lizZardDota273
Other Games
• imaqtpie1114
• Shiphtur164
Upcoming Events
Replay Cast
3h 27m
RSL Revival
13h 27m
Maru vs MaxPax
BSL
22h 27m
RSL Revival
1d 10h
Cure vs Rogue
uThermal 2v2 Circuit
1d 17h
BSL
1d 22h
Afreeca Starleague
2 days
Wardi Open
2 days
Replay Cast
3 days
Sparkling Tuna Cup
3 days
[ Show More ]
Kung Fu Cup
4 days
The PondCast
5 days
Replay Cast
6 days
Liquipedia Results

Completed

CSL Season 20: Qualifier 1
WardiTV Winter 2026
NationLESS Cup

Ongoing

BSL Season 22
CSL Elite League 2026
ASL Season 21
CSL Season 20: Qualifier 2
StarCraft2 Community Team League 2026 Spring
RSL Revival: Season 4
Nations Cup 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026

Upcoming

CSL 2026 SPRING (S20)
Acropolis #4
IPSL Spring 2026
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.