/**
 * A Robot that carpets the corridors of an 8 x 8 rectangular building
 * 
 * @author Russell C. Bjork
 * @version January 10, 2006
 */

import kareltherobot.*;

public class CarpeterRobot extends Robot
{
    /** 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 CarpeterRobot(int street, int avenue, Direction direction, int beepers)
    {
        super(street, avenue, direction, beepers);
    }
    
    /** Carpet a building by carpeting each of its four corridors
     */
    public void carpetBuilding()
    {
        carpetCorridor();
        turnLeft();       
        carpetCorridor();
        turnLeft();       
        carpetCorridor();
        turnLeft();       
        carpetCorridor();
        turnLeft();
    }
    
    /** Carpet a single corridor which is exactly 8 blocks long
     */
    public void carpetCorridor()
    {
    }
}