robocode:first-robot
Erster Roboter
package man; import robocode.*; public class MyFirstRobot extends Robot { public void run() { while (true) { ahead(100); turnGunRight(360); back(100); turnGunRight(360); } } public void onScannedRobot(ScannedRobotEvent e) { fire(1); } }
robocode/first-robot.txt · Zuletzt geändert: 2020/10/13 14:25 von 127.0.0.1