资 源 简 介
ThirdRobotLaw is a Robocode robot which implements the following strategy:
Movement: ThirdRobotLaw begins by moving towards either the left or right wall, whichever one is closer. It then randomly moves up and down along the wall until there is only one enemy robot remaining. When there is only one enemy robot remaining, ThirdRobotLaw stops moving and tries to target the enemy but moves randomly up or down whenever it is hit a consecutive number of times by the enemy.
Targeting: When there is only one enemy remaining, it tries to stay stationary and track its opponent with only gun movements.
Firing: Whenever it scans another robot, it immediately fires a bullet at the robot with bullet power that is proportional to how far away the enemy is. If consecutive hits are made, the bullet power is adjusted to maximum.
Vulnerabilities: While stationary, it is very vulnerable especially wi
文 件 列 表
robocode-fac-thirdrobotlaw-1.8.2011.10.12.22.56
config
robots
src
.classpath
.project
build.xml
checkstyle.build.xml
common.build.xml
dependencyfinder.build.xml
dist.build.xml
emma.build.xml
fac.ThirdRobotLaw_1.8.2011.10.12.22.56.jar
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