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

您现在的位置是:虫虫源码 > Java > 一个Robocode机器人

一个Robocode机器人

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

资 源 简 介

Green Machine is a Robocode robot. It has the following behaviors: Movment: For movement what better way to avoid being hit than to be unpredictable... so what better way to be unpredictable then to use sporadic sudo random movements. The movement method utilizes a built in Java random number generator and generate a random degree between 0-300 and a distance between 75-100 pixels. Such a short maximum distance moved per turn was chosen because moving in one way for any extended time will give an opponent a chance to preform linear targeting on the robot. A way to improve on this move method is to eliminate the possibility of moving directly towards or away from the enemy, as this would not change you retaliative bearing in comparison to the enemy. Targeting/Firing: For targeting the robot continuously scan the field between moves and acquire a target. Once a

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP