User Activity

  • Posted a comment on discussion Open Discussion on Robocode

    thank you very much, i understand what you say, but maybe is not aplicable to my situation, because i have tu battle with another 10 robots in a 1000x1000 battlefield, so, almost always im gonna have a robot near and i need to get away. Im trying what you say, but if you have some type of "tutorial" about the setXXX methods and their executions (something like the API but more explained, i don´t understand what is "will not execute until you call execute() or take an action that executes", for example,...

  • Posted a comment on discussion Open Discussion on Robocode

    im using this code: package prueba; import robocode.*; import robocode.ScannedRobotEvent; public class Random2 extends AdvancedRobot{ int m = 1; int g = 1; int r = 1; public void run() { setAdjustGunForRobotTurn(true); setAdjustRadarForGunTurn(true); setAdjustRadarForRobotTurn(true); setTurnRadarRight(99999); } public void onScannedRobot(ScannedRobotEvent e) { if(e.getDistance()<=254){ r=-r; setTurnRadarRight(99999r); setTurnRight(e.getBearing()+90-30m); m=-m; ahead(200m); } } } and im trying to...

View All

Personal Data

Username:
javiier313
Joined:
2020-06-28 05:30:14

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB