[Home]Spiin

Robo Home | Changes | Preferences | AllPages

Difference (from prior minor revision) (no other diffs)

Changed: 10,17c10,15
public class Spiin extends AdvancedRobot
{
public void run()
{
do{
setAhead(12d);
turnRight(10d);
}while(true);
public class Spiin extends AdvancedRobot {
public void run() {
do {
setAhead(12d);
turnRight(10d);
} while(true);

Changed: 20,21c18
public void onScannedRobot(ScannedRobotEvent e)
{
public void onScannedRobot(ScannedRobotEvent e) {

Changed: 24,25c21
}
</pre>
}</pre>

package cx.femto;

import robocode.AdvancedRobot;
import robocode.ScannedRobotEvent;
/**
 * @author iiley
 * codesize 29
 */
public class Spiin extends AdvancedRobot {
    public void run() {
        do {
            setAhead(12d);
            turnRight(10d);
        } while(true);
    }

    public void onScannedRobot(ScannedRobotEvent e) {
        setFire(3d);
    }
}

Robo Home | Changes | Preferences | AllPages
Edit text of this page | View other revisions
Last edited September 15, 2003 9:48 EST by PEZ (diff)
Search: