[Home]FastTargeting/HeadOnTargeting

Robo Home | FastTargeting | Changes | Preferences | AllPages

Difference (from prior major revision) (minor diff, author diff)

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


Changed: 7c9
setTurnGunRightRadians?(robocode.util.Utils.normalRelativeAngle(absoluteBearing - getGunHeadingRadians?());
setTurnGunRightRadians?(robocode.util.Utils.normalRelativeAngle(absoluteBearing - getGunHeadingRadians?()));

Removed: 10,12d11


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


Changed: 17c16,18
* NanoStalker
* NanoStalker
* DaRula
* GrubbmOgre

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: