• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 10:55
CET 16:55
KST 00:55
  • 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
Behind the Blue - Team Liquid History Book15Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8herO wins SC2 All-Star Invitational14
Community News
ACS replaced by "ASL Season Open" - Starts 21/0218LiuLi Cup: 2025 Grand Finals (Feb 10-16)24Weekly Cups (Feb 2-8): Classic, Solar, MaxPax win2Nexon's StarCraft game could be FPS, led by UMS maker10PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar)13
StarCraft 2
General
How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game? Nexon's StarCraft game could be FPS, led by UMS maker Terran Scanner Sweep Behind the Blue - Team Liquid History Book Weekly Cups (Jan 12-18): herO, MaxPax, Solar win
Tourneys
LiuLi Cup: 2025 Grand Finals (Feb 10-16) RSL Season 4 announced for March-April PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) RSL Revival: Season 4 Korea Qualifier (Feb 14) Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
Map Editor closed ? [A] Starcraft Sound Mod
External Content
The PondCast: SC2 News & Results Mutation # 512 Overclocked Mutation # 511 Temple of Rebirth Mutation # 510 Safety Violation
Brood War
General
Which units you wish saw more use in the game? StarCraft player reflex TE scores [ASL21] Potential Map Candidates Gypsy to Korea ACS replaced by "ASL Season Open" - Starts 21/02
Tourneys
Escore Tournament StarCraft Season 1 [Megathread] Daily Proleagues Small VOD Thread 2.0 KCM Race Survival 2026 Season 1
Strategy
Fighting Spirit mining rates Zealot bombing is no longer popular? Simple Questions, Simple Answers Current Meta
Other Games
General Games
Path of Exile Diablo 2 thread Nintendo Switch Thread Battle Aces/David Kim RTS Megathread ZeroSpace Megathread
Dota 2
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
TL Mafia Community Thread Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread Ask and answer stupid questions here! European Politico-economics QA Mega-thread The Games Industry And ATVI Russo-Ukrainian War Thread
Fan Clubs
The IdrA Fan Club The herO Fan Club!
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
ADHD And Gaming Addiction…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1995 users

RoboCode AI

Blogs > Qzy
Post a Reply
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
Last Edited: 2010-12-14 18:48:58
December 14 2010 18:40 GMT
#1
Hi!

If you like tanks and AI, you should try looking into this game called RoboCode.

My colleague and I just released an article explaining the implementation of feedforward neural networks, reinforcement learning and neuroevolution of augmenting topologies (new science only 10ish years old).

The article can be found on Robocodes wiki. (It's the latest added article).

And a promo video here:


I'm currently starting to write my thesis with some PhD students who are solving balance between unit-types (ie starcrafts units, marines, zerglings, etc.)

I hope it interests the community!

TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
VonLego
Profile Joined June 2010
United States519 Posts
December 14 2010 19:32 GMT
#2
Thats actually really really really cool. Thanks so much for sharing. I can't wait to get later on into my comp engineering degree to hopefully play with some cool stuff like this and more.
Bajadulce
Profile Joined October 2004
United States322 Posts
December 14 2010 19:52 GMT
#3
While video game graphics have been improving at astounding rates, game play and especially computer AI seem to have been neglected along the way. Starcraft2, Civ5, etc. These games are supposed to captivate us w/ their strategy not woo us with their porn! We need more emphasis on game play and AI over graphics. Your video reminds me of a simpler video game era and I applaud your efforts. Thnx for sharing and gluck w/ your studies.
Planar Erratus: (www.broodwarai.com/mods/peai) Where the worlds of Baldur’s Gate, Arcanum, Diablo, Icewind Dale, Torment, and Warcraft collide with Starcraft. Don't question, just play! ... Dedicated to all my TL.net friends and old schoolers!
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
Last Edited: 2010-12-14 20:08:58
December 14 2010 20:06 GMT
#4
On December 15 2010 04:52 Bajadulce wrote:
While video game graphics have been improving at astounding rates, game play and especially computer AI seem to have been neglected along the way. Starcraft2, Civ5, etc. These games are supposed to captivate us w/ their strategy not woo us with their porn! We need more emphasis on game play and AI over graphics. Your video reminds me of a simpler video game era and I applaud your efforts. Thnx for sharing and gluck w/ your studies.


The reason AI doesn't improve at the same rate of graphics and game play, is due to programmers being too scared to try new things - everything (when on a budget and a tight timeline) needs to be debug-able.
Newer AI (as in the video) can start acting weird, and it can be troublesome to debug it. Ie we rewarded the tank to develop a movement to optimize it's speed and minimize the amount of times it crashed into walls. It evolved into a tank running in circles - optimizing speed and certainly not running into walls. Gah! So we told it to minimize turning as well.

We had guest lecturer Morten Heiberg (ex-IOInteractive lead programmer, hitman and Kane and Lynch-series) telling us they only had very simple AI due to the above reasons .

Complex AI can only be seen in games like Black and white (remember the God-game?). Hope more publishers dare to take risks.

Happy that you guys like it! Lots of new knowledge can be brought into the field of AI, so please do start studying it .
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
Airsick
Profile Joined March 2010
United States134 Posts
December 14 2010 20:15 GMT
#5
On December 15 2010 05:06 Qzy wrote:
Show nested quote +
On December 15 2010 04:52 Bajadulce wrote:
While video game graphics have been improving at astounding rates, game play and especially computer AI seem to have been neglected along the way. Starcraft2, Civ5, etc. These games are supposed to captivate us w/ their strategy not woo us with their porn! We need more emphasis on game play and AI over graphics. Your video reminds me of a simpler video game era and I applaud your efforts. Thnx for sharing and gluck w/ your studies.


The reason AI doesn't improve at the same rate of graphics and game play, is due to programmers being too scared to try new things - everything (when on a budget and a tight timeline) needs to be debug-able.
Newer AI (as in the video) can start acting weird, and it can be troublesome to debug it. Ie we rewarded the tank to develop a movement to optimize it's speed and minimize the amount of times it crashed into walls. It evolved into a tank running in circles - optimizing speed and certainly not running into walls. Gah! So we told it to minimize turning as well.

We had guest lecturer Morten Heiberg (ex-IOInteractive lead programmer, hitman and Kane and Lynch-series) telling us they only had very simple AI due to the above reasons .

Complex AI can only be seen in games like Black and white (remember the God-game?). Hope more publishers dare to take risks.

Happy that you guys like it! Lots of new knowledge can be brought into the field of AI, so please do start studying it .

It's too bad the creature in Black and White 2 was dumbed down so much. That ruined the game for me =(.
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
December 14 2010 20:20 GMT
#6
On December 15 2010 05:15 Airsick wrote:
Show nested quote +
On December 15 2010 05:06 Qzy wrote:
On December 15 2010 04:52 Bajadulce wrote:
While video game graphics have been improving at astounding rates, game play and especially computer AI seem to have been neglected along the way. Starcraft2, Civ5, etc. These games are supposed to captivate us w/ their strategy not woo us with their porn! We need more emphasis on game play and AI over graphics. Your video reminds me of a simpler video game era and I applaud your efforts. Thnx for sharing and gluck w/ your studies.


The reason AI doesn't improve at the same rate of graphics and game play, is due to programmers being too scared to try new things - everything (when on a budget and a tight timeline) needs to be debug-able.
Newer AI (as in the video) can start acting weird, and it can be troublesome to debug it. Ie we rewarded the tank to develop a movement to optimize it's speed and minimize the amount of times it crashed into walls. It evolved into a tank running in circles - optimizing speed and certainly not running into walls. Gah! So we told it to minimize turning as well.

We had guest lecturer Morten Heiberg (ex-IOInteractive lead programmer, hitman and Kane and Lynch-series) telling us they only had very simple AI due to the above reasons .

Complex AI can only be seen in games like Black and white (remember the God-game?). Hope more publishers dare to take risks.

Happy that you guys like it! Lots of new knowledge can be brought into the field of AI, so please do start studying it .

It's too bad the creature in Black and White 2 was dumbed down so much. That ruined the game for me =(.


Wait it was dumbed down? I only played the first one... Damn i remember teaching it to pick up villagers and throw them out in the water.
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
AcrossFiveJulys
Profile Blog Joined September 2005
United States3612 Posts
Last Edited: 2010-12-14 20:47:22
December 14 2010 20:46 GMT
#7
How did you represent the statespace/actionspace for NN/RL? What RL algorithm did you use?'

edit: ah, nevermind, i see you posted a link to a wiki with some papers. will read through those when I have a chance.
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
Last Edited: 2010-12-14 21:56:30
December 14 2010 21:54 GMT
#8
On December 15 2010 05:46 AcrossFiveJulys wrote:
How did you represent the statespace/actionspace for NN/RL? What RL algorithm did you use?'

edit: ah, nevermind, i see you posted a link to a wiki with some papers. will read through those when I have a chance.


For input for the aim ANN were previous positions of the enemy tank relative to the position of our own tank (we did experiments how many previous positions were optimal), and the power of the shot we were firing. RL algorithm we used a standard Q-table, which we found out weren't necessary as it can easily be calculated but that's a learning experience thing.

For the NEAT we evolved in phases. First learning the tank not to run into walls, then learn it to chase the opponent tank, then learning to avoid shots, etc. Keep updating it's fitness function.
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
darmousseh
Profile Blog Joined May 2010
United States3437 Posts
December 14 2010 22:17 GMT
#9
On December 15 2010 06:54 Qzy wrote:
Show nested quote +
On December 15 2010 05:46 AcrossFiveJulys wrote:
How did you represent the statespace/actionspace for NN/RL? What RL algorithm did you use?'

edit: ah, nevermind, i see you posted a link to a wiki with some papers. will read through those when I have a chance.


For input for the aim ANN were previous positions of the enemy tank relative to the position of our own tank (we did experiments how many previous positions were optimal), and the power of the shot we were firing. RL algorithm we used a standard Q-table, which we found out weren't necessary as it can easily be calculated but that's a learning experience thing.

For the NEAT we evolved in phases. First learning the tank not to run into walls, then learn it to chase the opponent tank, then learning to avoid shots, etc. Keep updating it's fitness function.




What was the fitness equation? Is hitting the target in the middle more valuable than hitting the target near the edge? I did my undergrad work on AI. (Have not gone to grad school, don't want to be a prof).
Developer for http://mtgfiddle.com
darmousseh
Profile Blog Joined May 2010
United States3437 Posts
December 14 2010 22:30 GMT
#10
On December 15 2010 05:15 Airsick wrote:
Show nested quote +
On December 15 2010 05:06 Qzy wrote:
On December 15 2010 04:52 Bajadulce wrote:
While video game graphics have been improving at astounding rates, game play and especially computer AI seem to have been neglected along the way. Starcraft2, Civ5, etc. These games are supposed to captivate us w/ their strategy not woo us with their porn! We need more emphasis on game play and AI over graphics. Your video reminds me of a simpler video game era and I applaud your efforts. Thnx for sharing and gluck w/ your studies.


The reason AI doesn't improve at the same rate of graphics and game play, is due to programmers being too scared to try new things - everything (when on a budget and a tight timeline) needs to be debug-able.
Newer AI (as in the video) can start acting weird, and it can be troublesome to debug it. Ie we rewarded the tank to develop a movement to optimize it's speed and minimize the amount of times it crashed into walls. It evolved into a tank running in circles - optimizing speed and certainly not running into walls. Gah! So we told it to minimize turning as well.

We had guest lecturer Morten Heiberg (ex-IOInteractive lead programmer, hitman and Kane and Lynch-series) telling us they only had very simple AI due to the above reasons .

Complex AI can only be seen in games like Black and white (remember the God-game?). Hope more publishers dare to take risks.

Happy that you guys like it! Lots of new knowledge can be brought into the field of AI, so please do start studying it .

It's too bad the creature in Black and White 2 was dumbed down so much. That ruined the game for me =(.



Lol, punishing it for running into walls I don't think is a good idea. Running into a wall doesn't immediately correspond to worse position, instead adding an input variable for how close it is to a wall will help the AI more since it will eventually learn that being too close to a wall corresponds with a less optimal strategy, but that not moving is even worse. This is why I like reinforcement learning better than a simple ANN. ANN tend to converge towards local maxima to maximize immediate rewards, whereas the randomness introduced in a TD algorithm helps it get closer to a global maxima since individual moves are less important than an overall goal. In a ANN only algorithm, it will get close to a wall and think that it is doing worse, but in actuality running into a wall is fine if it helps you learn. I that mixing algorithms like the monte carlo, etc will produce better results.

I feel like there is some algorithm out there waiting to be discovered still.


Developer for http://mtgfiddle.com
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
Last Edited: 2010-12-14 23:06:34
December 14 2010 23:05 GMT
#11
On December 15 2010 07:30 darmousseh wrote:
Show nested quote +
On December 15 2010 05:15 Airsick wrote:
On December 15 2010 05:06 Qzy wrote:
On December 15 2010 04:52 Bajadulce wrote:
While video game graphics have been improving at astounding rates, game play and especially computer AI seem to have been neglected along the way. Starcraft2, Civ5, etc. These games are supposed to captivate us w/ their strategy not woo us with their porn! We need more emphasis on game play and AI over graphics. Your video reminds me of a simpler video game era and I applaud your efforts. Thnx for sharing and gluck w/ your studies.


The reason AI doesn't improve at the same rate of graphics and game play, is due to programmers being too scared to try new things - everything (when on a budget and a tight timeline) needs to be debug-able.
Newer AI (as in the video) can start acting weird, and it can be troublesome to debug it. Ie we rewarded the tank to develop a movement to optimize it's speed and minimize the amount of times it crashed into walls. It evolved into a tank running in circles - optimizing speed and certainly not running into walls. Gah! So we told it to minimize turning as well.

We had guest lecturer Morten Heiberg (ex-IOInteractive lead programmer, hitman and Kane and Lynch-series) telling us they only had very simple AI due to the above reasons .

Complex AI can only be seen in games like Black and white (remember the God-game?). Hope more publishers dare to take risks.

Happy that you guys like it! Lots of new knowledge can be brought into the field of AI, so please do start studying it .

It's too bad the creature in Black and White 2 was dumbed down so much. That ruined the game for me =(.



Lol, punishing it for running into walls I don't think is a good idea. Running into a wall doesn't immediately correspond to worse position, instead adding an input variable for how close it is to a wall will help the AI more since it will eventually learn that being too close to a wall corresponds with a less optimal strategy, but that not moving is even worse. This is why I like reinforcement learning better than a simple ANN. ANN tend to converge towards local maxima to maximize immediate rewards, whereas the randomness introduced in a TD algorithm helps it get closer to a global maxima since individual moves are less important than an overall goal. In a ANN only algorithm, it will get close to a wall and think that it is doing worse, but in actuality running into a wall is fine if it helps you learn. I that mixing algorithms like the monte carlo, etc will produce better results.

I feel like there is some algorithm out there waiting to be discovered still.




Actually for movement it was a NEAT and not just a "simple ANN" . Punishing it for driving into walls were needed, as it drains energy from the tank.
The fitness equations (all of them) can be found in the article. Lots of math there :p.

And yeah I agree there's lot of stuff to be discovered in the field of AI - I hope we'll write a new subcategory for NEAT in my thesis
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
Last Edited: 2010-12-15 01:52:29
December 15 2010 01:32 GMT
#12
The article and video were just mentioned on RoboWiki's twitter :p... /proud
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
Voidious
Profile Joined July 2009
United States6 Posts
December 17 2010 03:48 GMT
#13
On December 15 2010 10:32 Qzy wrote:
The article and video were just mentioned on RoboWiki's twitter :p... /proud

And I found this thread from @pavelsavara (one of the Robocode devs) =) Great work on that vid - was easy to see you had passion for your work with those meticulous debugging graphics. (I'm Voidious and behind @robowiki, btw.) Are you going to enter any of your bots in the rumble?

It's interesting to note that the best Robocode bots use relatively simple classification algorithms compared to the field of machine learning in general. Things like k-nearest neighbors. How you distill the game state into relevant inputs and outputs is super important (GuessFactor is a prime example). You don't have much CPU time to make a decision. And you're continually gathering data, so your system needs to learn quickly but also scale well to leverage huge amounts of data if it's available.

And yeah, you should all check out Robocode / the RoboWiki. :-P It's pretty easy to get started but with plenty of room for depth. Though I've basically been on hiatus from Robocode since I first got a SC2 beta key, so of course I can understand why you wouldn't... =)
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
December 28 2010 20:34 GMT
#14
Continued in pm .
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
Please log in or register to reply.
Live Events Refresh
LiuLi Cup
11:00
2025 Grand Finals Playoffs
ByuN vs SerralLIVE!
RotterdaM2475
ComeBackTV 1327
PiGStarcraft814
IndyStarCraft 447
BRAT_OK 252
Rex128
3DClanTV 85
IntoTheiNu 22
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 2475
PiGStarcraft814
IndyStarCraft 447
BRAT_OK 252
Rex 128
UpATreeSC 29
StarCraft: Brood War
Britney 41601
Jaedong 1840
Flash 1824
Soma 1157
Calm 1105
firebathero 1061
Hyuk 871
Light 584
Stork 573
Snow 347
[ Show more ]
Rush 277
Soulkey 163
Bonyth 82
Sea.KH 80
Movie 67
Hm[arnc] 66
Leta 57
Aegong 44
Free 40
Yoon 38
sorry 36
soO 31
ToSsGirL 27
HiyA 23
Rock 20
910 19
JulyZerg 18
Terrorterran 17
IntoTheRainbow 17
Shinee 16
Shine 14
yabsab 12
ivOry 5
Dota 2
Gorgc6458
singsing3441
Fuzer 75
febbydoto13
Counter-Strike
fl0m4157
shoxiejesuss2764
byalli606
Super Smash Bros
Mew2King96
Heroes of the Storm
Khaldor605
Liquid`Hasu346
Trikslyr4
MindelVK3
Other Games
B2W.Neo1160
Mlord535
crisheroes383
Hui .129
ArmadaUGS123
KnowMe103
Organizations
Counter-Strike
PGL27238
Other Games
EGCTV946
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH146
• StrangeGG 34
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• FirePhoenix8
• Michael_bg 5
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos3688
Upcoming Events
PSISTORM Gaming Misc
1h
RSL Revival
2h 5m
AI Arena Tournament
4h 5m
Replay Cast
8h 5m
Sparkling Tuna Cup
18h 5m
LiuLi Cup
19h 5m
Ladder Legends
1d 2h
Replay Cast
1d 8h
Replay Cast
1d 17h
Wardi Open
1d 20h
[ Show More ]
Monday Night Weeklies
2 days
OSC
2 days
WardiTV Winter Champion…
2 days
Replay Cast
3 days
WardiTV Winter Champion…
3 days
Replay Cast
4 days
PiG Sty Festival
4 days
The PondCast
4 days
KCM Race Survival
4 days
WardiTV Winter Champion…
4 days
Replay Cast
5 days
PiG Sty Festival
5 days
Epic.LAN
5 days
Replay Cast
6 days
PiG Sty Festival
6 days
CranKy Ducklings
6 days
Epic.LAN
6 days
Liquipedia Results

Completed

Escore Tournament S1: W8
Rongyi Cup S3
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
LiuLi Cup: 2025 Grand Finals
Nations Cup 2026
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025

Upcoming

Escore Tournament S1: King of Kings
[S:21] ASL SEASON OPEN 1st Round
[S:21] ASL SEASON OPEN 1st Round Qualifier
[S:21] ASL SEASON OPEN 2nd Round
[S:21] ASL SEASON OPEN 2nd Round Qualifier
Acropolis #4
IPSL Spring 2026
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
WardiTV Winter 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
FISSURE Playground #3
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
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.