Up until now, we have been messing around with a program called Robocode. We have been looking at how the robots work, learning how to make them move, and brainstorming strategies to defeat other robots. Coming up is a tournament that has been put together by our professor called Robowars. In Robowars we can challenge other people over the internet with the robot I created and the robot they created. But for now we are going to challenge people within our class. The robot I put together now to challenge my classmates with is called KillaRobot, KR for short.
Now that we have learned the basic movements and some strategies, it was time to design our own robots. KillaRobot does basic movements, but it destroys 7 out 8 sample robots at best 2 out of 3. The sample robots can be viewed in my last blog entry.
Creating KillaRobot
Upon building my robot, my main concern was how am I going to fire at the other robots. After doing the basic scan the battlefield and fire on scanned robot, then came the idea of just moving straight to be able to dodge enemy bullets. But after getting those two basic movements and observing that with just the basic movements I can destroy most sample robots, Ramfire comes and just destroys me. I did not know how to counter Ramfire. I tried moving away when I got hit. I tried doing circles. But it kept on winning the overall battle. Then I thought, how about I just hit Ramfire back, because I have the advantage first because I shoot it a couple times first before it hits me. Then after applying this thought, I was able to make "KillaRobot".
Movements
KillaRobot's movements are really basic. It moves in a straight line while scanning the battlefield. When it sees another robot, it fires max power. If it hits a wall, it will turn right and move forward again. What is unique about KillaRobot is that when it gets hit or hits another robot first, it will act like Ramfire. It will run into the enemy robot and fire max power. Another thing that makes KillaRobot unique is that when it gets hit by a bullet it will turn right and move forward. I made it do this when it get hits by a bullet because I noticed that it died alot when facing Spinbot. I thought how am I dying by Spinbot. I found out that since KillaRobot moves in a straight line, if it moved horizontal on the playing field Spinbot was able to hit KillaRobot. When applying the turn when KillaRobot gets hit by a bullet, KillaRobot was able to defeat Spinbot.
Victories
The robots KillaRobot was able to defeat was RamFire, SpinBot, Crazy, Fire, Sitting Duck, Corners, Tracker. Tracker wins sometimes, but overall KillaRobot wins. A win is a win. Walls is the only robot that KillaRobot cannot defeat. The next build, I will concentrate on defeating walls. Since Ramfire was what I concentrated on first, I stuck with it. And it destroyed 7 out of 8.
You can see my robot's abilies HERE.
Monday, September 21, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment