CassiusClay/BeeRRGC
Jump to navigation
Jump to search
- Sub-pages:
- /Archived Talk 20090424
PEZ first entry in the RRGunChallenge (RRGC)
It's the gun from CassiusClay (Bee).
Download: http://www.robocoderepository.com/BotDetail.jsp?id=2310
Like all RRGC bots it uses the Raiko movement stripped of the MusashiTrick.
Here goes:
package wiki.rrgc; import pez.rumble.pgun.*; import wiki.rmove.*; import robocode.*; import robocode.util.Utils; import java.awt.Color; // BeeRRGC - Bee gun by PEZ - Raiko Movement by Jamougha // For the RoboRumble Gun Challenge - http://robowiki.net/?RRGunChallange // // Released under the RWPCL - RoboWiki Public Code Licence - http://robowiki.net/?RWPCL public class BeeRRGC extends AdvancedRobot { Bee gun; RaikoNMT movement; public void run() { gun = new Bee(this); movement = new RaikoNMT(this); setColors(Color.magenta, Color.magenta, Color.magenta); setAdjustGunForRobotTurn(true); setAdjustRadarForGunTurn(true); do { turnRadarRightRadians(Double.POSITIVE_INFINITY); } while (true); } public void onScannedRobot(ScannedRobotEvent e) { gun.onScannedRobot(e); movement.onScannedRobot(e); setTurnRadarRightRadians(Utils.normalRelativeAngle(getHeadingRadians() + e.getBearingRadians() - getRadarHeadingRadians()) * 2); } }
My only test before release:
1st: wiki.rrgc.BeeRRGC 9245 3400 680 4481 683 0 0 68 32 2nd: ad.Quest 0.10 6029 1600 320 3743 365 0 0 32 68
-- PEZ