
/**
 * Second robot class for CS112 Project 1, Spring 2006.  This class
 * is used for the starting racer for option 2.  Instructor program
 *
 * This version illustrates how using a do..while solves the problem
 * that otherwise arises when running a race with three robots
 * 
 * @author Russell C. Bjork
 * @version January 19, 2006

 */
import kareltherobot.*;

public class FixedRelayRobot extends RacerRobot
{
    /** Constructor
     *
     *  @param street the starting street for this robot
     *  @param avenue the starting avenue for this robot
     *  @param direction the direction this robot is initially facing
     *  @param beepers the number of beepers this robot has initially
     */
    public FixedRelayRobot(int street, int avenue, Direction direction, int beepers)
    {
        super(street, avenue, direction, beepers);
    }

    /** Run the race
     * 
     */
    public void runRace()
    {
        do
            advanceOneStep();
        while (! nextToARobot());
    }
    

    
}