Hi erstmal 
Orni , der Fox05 is ja der neuste oder ?
Wenn ja , haste wohl etwas zu viel rumgecodet
Ich hab beim standart nur die Bewegungsroutine verändert ...
Ich hab gewonnen xD
EDIT: moment :/ is wohl sehr zufallslastig ... die letzten 2 mal hat wieder dein robot gewonnen ... komisch
Orni , der Fox05 is ja der neuste oder ?
Wenn ja , haste wohl etwas zu viel rumgecodet
Ich hab beim standart nur die Bewegungsroutine verändert ...
Code:
package marcel;
import robocode.*;
//import java.awt.Color;
/**
* DasPanzer - a robot by (your name here)
*/
public class DasPanzer extends Robot
{
/**
* run: DasPanzer's default behavior
*/
public void run() {
// After trying out your robot, try uncommenting the import at the top,
// and the next line:
//setColors(Color.red,Color.blue,Color.green);
while(true) {
// Replace the next 4 lines with any behavior you would like
ahead(100);
turnGunLeft(120);
turnGunRight(240);
turnRight(45);
}
}
/**
* onScannedRobot: What to do when you see another robot
*/
public void onScannedRobot(ScannedRobotEvent e) {
fire(1);
}
/**
* onHitByBullet: What to do when you're hit by a bullet
*/
public void onHitByBullet(HitByBulletEvent e) {
turnLeft(90 - e.getBearing());
ahead(75);
}
}
Ich hab gewonnen xD
EDIT: moment :/ is wohl sehr zufallslastig ... die letzten 2 mal hat wieder dein robot gewonnen ... komisch