[Home]FastTargeting/HeadOnTargeting

Robo Home | FastTargeting | Changes | Preferences | AllPages

Showing revision 5
Difference (from revision 5 to revision 5) (minor diff, author diff)
(The revisions are identical or unavailable.)
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 revision 5 of this page | View other revisions | View current revision
Edited February 10, 2006 16:40 EST by Gez (diff)
Search: