import robocode.*; /**
* @author iiley * code size 34 * version 1.0:a Trigon movement * version 1.1:change to a hexagon like movement */public class Trigon extends AdvancedRobot {
public void run()
{
setTurnGunRight(Double.POSITIVE_INFINITY);
while(true){
turnRightRadians?(1);
ahead(200);
}
}
public void onScannedRobot(ScannedRobotEvent e) {
setFire(3d);
}
}
</pre>