(redirected from HOT)

[Home]HeadOnTargeting

Robo Home | Changes | Preferences | AllPages

  1. REDIRECT FastTargeting/HeadOnTargeting
To shoot using HeadOnTargeting:

In onScannedRobot, add:

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


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

Please post bots on robocode rumble that use head on targeting in HeadOnTargetingBots? --andrew


Robo Home | Changes | Preferences | AllPages
Edit text of this page | View other revisions
Last edited July 5, 2005 4:26 EST by Jokester (diff)
Search: