Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Genetic Algorithm and Robocode

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
9,465
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 20, 2010

Evolved robot: blue.
Opponent: yellow.

A result of a college project. Compilable Java code is generated, evaluated, mutated and evolves into a robot for the program Robocode. The robot was evolved to defeat the sample robot Spinbot. At the end of generation 111 It wins about 75% of the time.

RoboCode is a program that simulates battles of preprogrammed robots. Robots can scan, move and fire.

I think it's interesting to see how completely random behavior is created and evolves into behavior similar to that of Spinbot.

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (ArmoredSandwich)

  • Care to make your code public? I implemented something similar but nowhere near this smooth.

  • @hayopmustamike It's right here: code.google.com/p/aesi/ . Be careful, it's from a while ago!

Top Comments

  • I want to see generation 9001.

  • what if you put it against more bots? In this case the blue bot is evolving, getting better against a spinning bot, but is not developing a better general attacking strategy. I don't pretend to criticize here, i just wanna make sure i'm getting how is this supposed to work.

see all

All Comments (12)

Sign In or Sign Up now to post a comment!
  • This is great !

  • @ArmoredSandwich Awesome!

  • fantastic!!

  • Now evolve two to fight against each other, so that they evolve to outsmart rather than evolve to fight a predictable spin.

  • at least spin bot is original and doesn't steal other people's moves :|

  • Awesome.

  • very nice

    

  • nice!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more