(Difference between revisions)
|Line 11:||Line 11:|
[[Category:Targeting:Simple Targeting ]]
Revision as of 22:19, 9 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()));