Thread history
Jump to navigation
Jump to search
Time | User | Activity | Comment |
---|---|---|---|
No results |
package MyRobots;
import robocode.AdvancedRobot; import robocode.ScannedRobotEvent; import robocode.util.Utils;
public class Yeah extends AdvancedRobot {
public void run() {
turnRadarRightRadians(Double.POSITIVE_INFINITY); do { scan(); } while (true);
}
public void onScannedRobot(ScannedRobotEvent e) {
double radarTurn = // Absolute bearing to target getHeadingRadians() + e.getBearingRadians() // Subtract current radar heading to get turn required - getRadarHeadingRadians(); setTurnRadarRightRadians(Utils.normalRelativeAngle(radarTurn));
}
}
Gertjan1996 (talk)
Nevermind, i fixed it already. Still thanks for your help
Gertjan1996 (talk)
It now only has a radar :P
Still have to add the movement and targeting haha
Gertjan1996 (talk)
http://robowiki.net/wiki/Stop_And_Go_Tutorial http://robowiki.net/wiki/Anti-Gravity_Tutorial http://robowiki.net/wiki/GuessFactor_Targeting_Tutorial do you have enough time left to implement all these