package trivial; import robocode.Robot; /** * Deliberately trivial reference opponent for fixture contrast. * Moves in straight legs at constant speed; turns 180 degrees in place at walls. * Never fires, never scans deliberately. */ public class StraightLine extends Robot { public void run() { // normalise body heading to east (classic Robocode heading 90 == east) turnRight(90 - getHeading()); while (true) { ahead(100000); // straight leg until blocked by a wall turnRight(180); // reverse in place } } }