Difference between revisions of "Head-On Targeting"
Jump to navigation Jump to search
|Line 11:||Line 11:|
[[Category:Targeting:Simple Targeting ]]
Revision as of 00:19, 10 November 2007
The simple strategy of aiming where you last saw the enemy. Works surprisingly well against surprisingly many bots, especially in Melee battles.
double absoluteBearing = getHeadingRadians() + e.getBearingRadians(); setTurnGunRightRadians(robocode.util.Utils.normalRelativeAngle(absoluteBearing - getGunHeadingRadians()));