It is ranked just in the top-50 with 1865 points
basic segmented GuessFactorTargeting
Not aware of melee
Between rounds anything usefull, between matches nothing.
Well, I think that is rather clear, isn't it.
This comes from the tutorials, so it is in the jar. Public domain. The authors all enjoy credits though.
Nothing. It fullfills its purpose as it is.
Reread this page, it is mentioned at the top.
This bot is stronger than expected. -- GrubbmGait
I put Squirrel's code in the jar, so that makes it open source, right? Anyway, I don't think anyone would really want to use my code, for two reasons. It's extremely messy, and Squirrel isn't that good. Oh well --Bayen
wiki.BasicGFSurfer 1.0: Exception: java.lang.ArrayIndexOutOfBoundsException: 5 java.lang.ArrayIndexOutOfBoundsException: 5 at wiki.GFTWave.setSegmentations(BasicGFSurfer.java:386) at wiki.BasicGFSurfer.onScannedRobot(BasicGFSurfer.java:102) at robocode.peer.robot.EventManager.onScannedRobot(Unknown Source) at robocode.peer.robot.EventManager.processEvents(Unknown Source) at robocode.peer.RobotPeer.tick(Unknown Source) at robocode.peer.RobotPeer.turnRadar(Unknown Source) at robocode._AdvancedRadiansRobot.turnRadarRightRadians(Unknown Source) at wiki.BasicGFSurfer.run(BasicGFSurfer.java:51) at robocode.peer.RobotPeer.run(Unknown Source) at java.lang.Thread.run(Unknown Source)Also, on two of the rounds, BasicGFSurfer is stopped.
---------------------- Round 3 initializing.... Let the games begin! Round 3 cleaning up. ---------------------- Round 4 initializing.... Let the games begin! wiki.BasicGFSurfer 1.0 has been stopped. No score will be generated. Round 4 cleaning up. ---------------------- Round 5 initializing.... Let the games begin! wiki.BasicGFSurfer 1.0 has been stopped. No score will be generated. Round 5 cleaning up. ---------------------- Round 6 initializing.... Let the games begin! Round 6 cleaning up. ---------------------- etc--Starrynte
I can see why - it has MAX_DISTANCE set to 900, but technically the maximum distance should be 1000 - BOT_WIDTH (because it measures from center of the bot) on an 800x600 field (like a 3/4/5 right triangle). If you are as far away as possible, it will be a higher index than the stat buffer is initialized with. Really, the safest thing to do would be to calculate MAX_DISTANCE based on battlefield width and height. Hopefully, that stoppage thing is also related. I'll update the GFTargetingBot tutorial; somebody should release a BasicSurfer 1.1 =) -- Voidious
Bugfixed version 1.01 available. Made a more robust fix than just increasing the distance, without any effect on distances < 900. MAX_DISTANCE remains 900.
int distanceIndex = Math.min(DISTANCE_INDEXES-1, (int)(distance / (MAX_DISTANCE / DISTANCE_INDEXES)));-- GrubbmGait