首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > Robocode机器人

Robocode机器人

  • 资源大小:26.13 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 机器人 robocode

资 源 简 介

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

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP