import becker.robots.*;

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

        new Thing(wallville, 7, 0);
        new Thing(wallville, 7, 2);

        // Instead of giving rob 6 separate "move" commands,
        // simply tell it that you want it to move 6 times
        int counter = 0;
        while ( counter < 2)
        {
            rob.move();
            counter = counter + 1; // counter is assigned the current value of i, plus 1
        }
    }
}
