资 源 简 介
RobotFighter is a Robocode robot implementing the following strategy:
Movement
The main feature of this bot is its random movement system. First, RobotFighter calculates the distance between itself and the enemy bot. If this distance is over 150 pixels, RobotFighter turns at a seemingly random angle and rushes toward the enemy bot. If the distance is less than 150 pixels, RobotFighter turns at a random angle and retreats up to 450 pixels away from the enemy bot. By introducing randomness into its movements, RobotFighter is able to evade enemy bot fire while closing in for short-distance attacks or retreating from ram-style attacks.
Targeting
RobotFighter scans in a right-ward direction at 45 degrees per tick and with a wide arc. Upon detection of an enemy bot, it fires a bullet and moves in a random direction. Due to the limitations of Robot class, all actions are performed in serial, and thus, RobotFighter cann
文 件 列 表
robocode-dwl-RobotFighter-1.1.1007
src
.classpath
.project
build.xml
checkstyle.build.xml
common.build.xml
dependencyfinder.build.xml
dist.build.xml
emma.build.xml
findbugs.build.xml
ivysettings.xml
jacoco.build.xml
jar.build.xml
javadoc.build.xml
javancss.build.xml
junit.build.xml
pmd.build.xml
sclc.build.xml
verify.build.xml