
/**
 * Second robot class for CS112 Project 1, Spring 2008.  This class
 * is used for the starting racer for option 2.  Instructor program
 *
 * @author Russell C. Bjork
 * @version March 11, 2008

 */
import kareltherobot.*;

public class RelayRobot 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 RelayRobot(int street, int avenue, Direction direction, int beepers)
	{
		super(street, avenue, direction, beepers);
	}

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

	
}