• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 21:09
CEST 03:09
KST 10:09
  • 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
Team Liquid Map Contest #22: Results and Winners6Code S Season 2 (2026): RO4 and Finals Preview12TL.net Map Contest #22 - Voting & Ladder Map Selection7Code S Season 2 (2026) - RO8 Preview5[ASL21] Finals Preview: Two Legacies21
Community News
Douyu Cup 2026: $20,000 Legends Event (June 26-28)8[BSL22] Non-Korean Championship from 13 to 28 June4Weekly Cups (May 25-31): Clem doubles, 2v2 circuit heads toward finale0StarCraft II 5.0.16 PTR Patch Notes may 26th153Weekly Cups (May 18-24): MaxPax wins doubles0
StarCraft 2
General
High level ptr replays? where can I find them? StarCraft II 5.0.16 PTR Patch Notes may 26th Team Liquid Map Contest #22: Results and Winners TL Poll: How do you feel about the 5.0.16 PTR balance changes? TL.net Map Contest #22 - Voting & Ladder Map Selection
Tourneys
Douyu Cup 2026: $20,000 Legends Event (June 26-28) Maestros of The Game 2 announcement and schedule ! Sparkling Tuna Cup - Weekly Open Tournament Sea Duckling Open (Global, Bronze-Diamond) GSL Code S Season 2 (2026)
Strategy
[G] Having the right mentality to improve
Custom Maps
[D]RTS in all its shapes and glory <3
External Content
The PondCast: SC2 News & Results Mutation # 529 Opportunities Unleashed Mutation # 528 Infection Detected Welcome to the External Content forum
Brood War
General
Quality of life changes in BW that you will like ? [BSL22] Non-Korean Championship from 13 to 28 June BGH Auto Balance -> http://bghmmr.eu/ vespene.gg — BW replays in browser The Korean Terminology Thread
Tourneys
[Megathread] Daily Proleagues [ASL21] Grand Finals [BSL22] Grand Finals - Sunday 21:00 CEST Escore Tournament StarCraft Season 2
Strategy
Creating a full chart of Zerg builds Relatively freeroll strategies Why doesn't anyone use restoration? Any training maps people recommend?
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread PC Games Sales Thread ZeroSpace Megathread Summer Games Done Quick 2026!
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
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
Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Trading/Investing Thread Canadian Politics Mega-thread Things Aren’t Peaceful in Palestine
Fan Clubs
The herO Fan Club!
Media & Entertainment
Movie Discussion! [Req][Books] Good Fantasy/SciFi books [TV/BOOK] *SPOILERS* Game of Thrones Discussion [Manga] One Piece
Sports
2024 - 2026 Football Thread Cricket [SPORT] TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion McBoner: A hockey love story
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Facing Challenges in Mobile App Development
TL Community
The Automated Ban List
Blogs
How Streaming Impacts Game P…
TrAiDoS
An Exploration of th…
waywardstrategy
I'm an arrogant trash talke…
FlaShFTW
Gauntlet SC2: A Retrospectiv…
Ctone23
Why RTS gamers make better f…
gosubay
ramps on octagon
StaticNine
Customize Sidebar...

Website Feedback

Closed Threads



Active: 10451 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 8h 51m
[ Submit Event ]
Live Streams
Refresh
Dota 2
NeuroSwarm85
League of Legends
Doublelift5400
JimRising 683
Super Smash Bros
hungrybox495
amsayoshi40
Other Games
summit1g13263
ViBE149
Tefel114
Trikslyr60
minikerr8
Organizations
Other Games
gamesdonequick693
BasetradeTV190
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 10 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Upcoming Events
Sparkling Tuna Cup
8h 51m
uThermal 2v2 Circuit
13h 51m
BSL22 NKC (BSL vs China)
17h 51m
Jaystar vs Dewalt
eOnzErG vs TerrOr
XuanXuan vs Bonyth
Mihu vs Dewalt
Messiah vs Jaystar
eOnzErG vs Bonyth
TerrOr vs Dewalt
Wardi Open
1d 9h
OSC
1d 22h
Replay Cast
3 days
The PondCast
4 days
Replay Cast
4 days
OSC
4 days
CranKy Ducklings
5 days
[ Show More ]
BSL22 NKC (BSL vs China)
6 days
XuanXuan vs Jaystar
Mihu vs Messiah
eOnzErG vs Dewalt
Bonyth vs Jaystar
TerrOr vs Messiah
XuanXuan vs Mihu
eOnzErG vs Jaystar
Liquipedia Results

Completed

Acropolis #4 - GSB
2026 GSL S2
Heroes Pulsing #1

Ongoing

IPSL Spring 2026
KCM Race Survival 2026 Season 2
Acropolis #4
CSCL: Masked Kings S4
YSL S3
BSL 22 Non-Korean Championship
SCTL 2026 Spring
Maestros of the Game 2
WardiTV Spring 2026
uThermal 2v2 2026 Main Event
Murky Cup 2026
Heroes Pulsing #2
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
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1

Upcoming

CSLAN 4
Blizzard Classic Cup 2026
Kung Fu Cup 2026 Grand Finals
CranK Gathers Season 4: BW vs SC2 Team League
HSC XXIX
Douyu Cup 2026
Heroes Pulsing #3
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 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.