package oopintro;

import becker.robots.City;
import becker.robots.Direction;
import becker.robots.Robot;

public class BeckersRobots {

    public static void main(String[] args) {

        // Robot API:
        // https://courses.cs.duke.edu/spring06/cps001/doc/becker/becker/robots/Robot.html
        // City API:
        // https://courses.cs.duke.edu/spring06/cps001/doc/becker/becker/robots/City.html
        // Direction API:
        // https://courses.cs.duke.edu/spring06/cps001/doc/becker/becker/robots/Direction.html

        // constructs a City that shows 25 streets and 25 avenues
        // (streets run horizontally, avenues run vertically)
        City city = new City(25, 25);
        // construct a new Robot inside the city, sitting on street 1, avenue 1, 
        // facing EAST
        Robot bob = new Robot(city, 1, 1, Direction.EAST);

        // robots can move() one intersection in the direction they are facing
        // robots know what street and avenue they're on: you can use
        // getAvenue() and getStreet() to find out
        // while (bob.getAvenue() <= 15) {
        //     bob.move();
        // }

        /*
         * Exercise: comment out the while loop up above.
         * Write the code to move the robot in a square (from starting
         * position to street 1, ave 15; then south to street 15, ave 15;
         * then west to street 15, ave 1; then north back to 1,1)
         * Tips:
         * - determine how many times the robot need to move, and how
         * many times it needs to turn
         * - a robot can turnLeft() 90 degrees (there is no turnRight())
         * - The Direction class is an enumeration; it has constants for
         * EAST, WEST, NORTH, and SOUTH
         */

         for (int )
     }

    
}
