资 源 简 介
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