package RCX3.docs; import josx.platform.rcx.*; /** *Guides the robot over a black line. */ public class FollowTheBlackLine extends Thread { /** *Makes the robot follow the line. */ public void run(){ while (true){ while (PrettyBoy.lightFlag){ Pilot.turnInPlace(true, 2); } Pilot.forward(75); while (!PrettyBoy.lightFlag){ Pilot.turnInPlace(false, 2); } Pilot.forward(75); } }//run }//FollowTheBlackLine