[Home]Yaya

Robo Home | Changes | Preferences | AllPages

package cx.femto;

import robocode.AdvancedRobot;
import robocode.ScannedRobotEvent;
/**
 * @author iiley
 * codesize 42
 */
public class Yaya extends AdvancedRobot
{
    public void run()
    {
		do{
           turnRight(10);
	       setAhead(Math.sin(getTime()/8)*1200d);
		}while(true);
    }

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

Robo Home | Changes | Preferences | AllPages
Edit text of this page | View other revisions
Last edited May 5, 2006 4:22 EST by GrubbmGait (diff)
Search: