package exercises;

import becker.robots.City;
import becker.robots.Direction;
import becker.robots.Robot;

public class Exercise3 {
    public static void main(String[] args){
    // Part A 
    //     City city = new City(25, 25);
    //     Robot bob = new Robot(city, 1, 1, Direction.EAST, 50);
    //     bob.putThing();
    //     bob.move();
    //     for (int i = 1; i <= 5; i++) {
    //     bob.putThing();
    //     bob.examineThings();
    //     System.out.println(bob.countThingsInBackpack());     // 44 things are in the backpack
    //     }
    // }
    


    // Part B
        City city = new City(25, 25);
        Robot bob = new Robot(city, 1, 1, Direction.EAST, 10);
        bob.putThing();
        bob.move();
        while(bob.countThingsInBackpack() <= 10){
            bob.putThing();
        }
    
}
