Robo Home | Changes | Preferences | AllPages


A learning bot by Darkcanuck



What's special about it?

Leon is my first public bot, based on a project in machine learning for a grad course I took in the fall of 2006. Leon uses neural networks for enemy movement prediction and the movement is based on a reinforcement learning algorithm.

How competitive is it?

Currently in the top-40 of the Melee Rumble.

How does it move?

Leon picks a movement vector every tick using a reinforcement learning algorithm. I'll probably post more details later, but the algorithm looks at the strength and position of the nearest enemies; rewards are roughly based on scoring, with positive rewards for dealing damage and survival, negative rewards (punishment) for being hit or dying. Its based on continuous reward SARSA using linear feature approximation, if that means anything to you.

There's also a basic dodging algorithm that estimates the location of the nearest incoming bullet (similar to a crude version of WaveSurfing) and excludes all actions that would result in a collision.

How does it fire?

Leon learns enemy movement patterns using a neural network for each enemy. An iterative algorithm then predicts future positions for the enemy being targeted and fires where the bullet and victim line up. I think this is similar to ScruchiPu?

How does the melee strategy differ from one-on-one strategy?

Leon's movement has been trained specifically for melee. One of the inputs to the learning algorithm is the number of remaining opponents, so 1-on-1 movement will be slightly different than a crowded battlefield. But I don't think his targeting is up to par with a good 1-on-1 bot.

How does it select a target to attack/avoid in melee?

Selects the closest target, with some protection against target thrashing.

What does it save between rounds and matches?

Between rounds, saves all neural network weights, targeting stats and bullet dodging data.

Between matches, saves only the reinforcement learning parameters. Leon should learn very slowly over time; however, fast learning is done pre-release using a 500-round testbed of melee bots. If you wipe out his battledata.ser and basedata.ser files, he should start re-learning (fast parameters) his movement from scratch. I need to find a better way to preload the data though.

Where did you get the name?

Blade Runner, of course.

Can I use your code?

No, sorry. Leon's predecessor was developed for a course I took which is still offered and I don't want to give anyone an unfair advantage. But if you want to know more, ask away.

What's next for your robot?

  1. Beat SittingDuck in the melee rumble. Issue with latest RoboRumble + Mac...
  2. Tweak RL movement and NN targeting to improve performance.
  3. Reduce the number of skipped turns in the first round (due to NN-learning), approx 25% skipped right now.

Does it have any WhiteWhales?

SandboxDT seems to always cause trouble in my tests. And Shadow, of course, but isn't that every melee bots' white wahle?

What other robot(s) is it based on?

My own creation. The similarity with ScruchiPu's targeting is accidental.

Version History

Comments, questions, feedback:

When I saw the name, Bladerunner naturally popped into my mind. Ironically Leon was great at 1-on-1 but didn't do so well against two opponents. -- Martin

The first thing I thought about when reading the name, was the film about the simple Italian soul Leon who was a unbelievable good hitman. How taking care of the neighbour girl fits into Robocode, I haven't figured out yet. -- GrubbmGait

Robo Home | Changes | Preferences | AllPages
Edit text of this page | View other revisions
Last edited January 9, 2008 3:49 EST by Darkcanuck (diff)