import becker.robots.*;

class RobotSmarter extends Robot
{
    RobotSmarter(City c, int st, int ave, Direction dir, int num)
    {
        super(c, st, ave, dir, num);
    }

    public void moveMultiple(numberOfIntersections)
    {
        int counter = 10;
        while_ ( counter > numberOfIntersections)
        {
            this.move();
            counter = counter + 1; 
            // counter is given: (the current value of counter plus 1)
        }
    }
}

public class ICE_06_Demo_1 extends Object
{
    public static void main(String[] args)
    {
        City wallville = new City();
        Robot rob = new Robot(wallville, 4, 0, Direction.EAST, 0);

        new Thing(wallville, 4, 0);
        new Thing(wallville, 4, 3);
        new Thing(wallville, 2, 3);

        rob.moveMultiple();
        rob.turnLeft();
        rob.moveMulitiple(2);
    }
}
