(redirected from HeadOnTargeting)

[Home]FastTargeting/HeadOnTargeting

Robo Home | FastTargeting | Changes | Preferences | AllPages

The simple strategy of Targeting where you last saw the enemy. Works surprisingly well against surprisingly many bots. Especially in Melee battle. -- PEZ

To shoot using HeadOnTargeting:

In onScannedRobot, add:

double absoluteBearing = getHeadingRadians() + e.getBearingRadians();
setTurnGunRightRadians(robocode.util.Utils.normalRelativeAngle(absoluteBearing - getGunHeadingRadians()));

Bots using this technique:


Robo Home | FastTargeting | Changes | Preferences | AllPages
Edit text of this page | View other revisions
Last edited February 10, 2006 16:44 EST by GrubbmGait (diff)
Search: