

As noted before, the Walls robot exploits WallRunner’s weakness. These are the average percentage of wins out of five matches. Whenever this weakness is exploited as soon as the onScannedRobot event is called, WallRunner will head directly for the attacker and shoot it will a fire power of 7.0.


If the Walls robot was directly above or below WallRunner while it was moving away from Walls, the Walls robot would exterminate my robot due to the fire power difference. Since WallRunner fire power relates to distance, the firepower would be weaker than the Walls robot depending on the distance between the robots. The latter problem appeared when competing against the robocode sample robot, Walls. Now this other condition is unique to the problem when WallRunner competes with another wall moving robot. If the robot’s energy is less than 10 and the distance is greater than 20 pixels, then fire power is set to 1.0 to conserve energy. Due to WallRunner shooting at the closet enemy, the bullet firepower is directly related to the battle field width with respect to the distance between the the robot and the enemy.

Thus, if WallRunner does not shoot for a short time, it will return to scanning mode once again to find a new target.īoth the targeting and firing logic are interloped due to the distance factor. To remedy this, one must assume that if WallRunner had locked on to an opponent that it would try to continuously shoot at the robot. In the case that the closest robot is killed, WallRunner will continue to search for the one that was killed. But one problem arise from targeting only one robot since it only searches for the closest robot. WallRunner relocates itself at the edge, the bullets that do not hit the target of original intent has a greater probability of hitting another robot compared to if WallRunner shot from the center of the battle field.įor the targeting logic, WallRunner will shoot at the closest enemy robot it can find relative to its location. This movement is based upon the strategy that WallRunner will never have to worry about scanning behind itself in order to stress focus towards the center of the battlefield. Please refer back to my previous blog entry for more details about robocode.ĭesign and implement a single robot that can reliably beat as many of the following eight sample robots as possible: Walls, RamFire, SpinBot, Crazy, Fire, Corners, Tracker, SittingDuck.īasically the robot, WallRunner, moves to the left or right edge of the battle field, depending on whichever is closer, then continues to to move up and down the screen.
