Wednesday, September 16, 2009

RoboCode: Review of the Sample Robots

After learning the basic movements for robocode, it has become fun and interesting. Seeing the robot move, track, and fire has made this ICS class fun. But the time is getting near for RoboWars and we need strategies for making our own KRs. KILLA ROBOTS. The following 8 robots are samples that I have reviewed to make a KR.

Walls:
This robot's movement has the simplest movement. It finds the nearest wall, goes to it, and moves along the walls shooting at the enemy. It only shoots at the enemy with medium power and when the enemy is in front of the gun. The movement for this robot is not very effective. If there was an enemy in the robot's path, it treats that enemy as a wall. The enemy robot could be towards the middle of a wall and if this sample robot hits the enemy robot, it would then move along the middle of the map as if it is moving along a wall. The firing for this robot is also not that effective because if it is correctly moving along the walls it would only shoot when the enemy robot is in front of the gun. If it is not moving correctly along the walls, then it could be missing the all the robots it does not see.

Ramfire:
A robot that is like a bulldozer with a gun fixed to it. This robot will pick an enemy robot that it will fire at and run into until that enemy is dead. This would be a very effective robot if it was able to stop the paths of other robots. If it doesn't stop the paths of other robots, it is just a straight moving robot because it does not fire at the enemy until it rams the enemy robot first. Ramfire has no special movements but ramming and getting extra points and no special fire abilities because it will not shoot the enemy robot until it hits the enemy first.

Spinbot:
This robot is a very dizzying robot. It spins in a circle while wildly firing at an enemy robot at full power. Most of the time this robot misses its target. The movement of this robot has no strategy, when it has an enemy in front of its gun it fires and mostly missing. It is a little effective for dodging bullets but not very. If its target is sitting still, then this robot will win.

Crazy:
Crazy is pretty crazy... The movement of this robot is very effective for enemy robots to miss. In its code it uses setTurns, setAhead, and waitFor in the AdvancedRobot. These methods give this robot the ability to move in a curve. Unlike robot, it has to use call a lot of methods to do the same. Although it uses advanced movements, its tracking and firing abilities are terrible. The gun and radar is fixed, so when the enemy is in front of the gun, it then shoots. What is worse, it fires with the least amount of energy.

Fire:
Ouch I got hit let me move from this spot... The movements of this robot is very bad. It sits in one spot until it gets hit, then it will just move a little either left or right. The tracking is also bad because the radar and fixed gun only turns to the right scanning the field. And judging only if the enemy is close, less than 50 pixels, it will use max fire power. If the enemy is far then it will use the least fire power. What is good about this robot is if it gets hit, the gun will turn real fast pointing to the enemy robot who hit it, and fires at maximum power.

Sitting Duck:
Shoot me!!!! This robot has nothing at all. There is no movement, scanning, or firing. Basically it is a target.

Corners:
Go to the corner... This robot has a good thought strategy but is very ineffective. It is good that it goes to a corner because no one can shoot it from behind. However, if it is stopped from getting to an actual corner, this robot is useless because it thinks it is at a corner but it is not. The tracking for this robot is ok, when it reaches its corner, it sweeps its gun from 0-90 and does a little tracking when locked on to a robot. Its firepower is also ok because it fires at the enemy when it is in front of the gun. It uses low power if the enemy is far and max when the enemy is close.

Tracker:
I got you in my sights... This robot is like Tracking02, but when it gets withing a certain distance between the enemy it open fires. The movement for this robot is not effective. It just tracks an enemy and either moves toward it or away and then fires. Its targeting is good because it sweeps its radar left to right if it lost its target. If it finds it then it moves foward or backward. If it does not find it in its left to right sweep, it then spins looking for another target. Its fire power is at maximum when it gets to a certain distance between the enemy. If another enemy hits the robot, it will open fire at maximum at that robot.

Reviewing these robots have given me a little insight on what I can use as strategy for my KR.

No comments:

Post a Comment