/**
 * <code>Main1</code> contains the main method for exercise 2.1.  The
 * main method is not fully implemented; you have to insert the moves
 * that move the robot to the target room (2, 0) of the maze.
 */

public class Main1 {
    /**
     * Creates a maze of 4*4 rooms and moves a robot from the room (0,
     * 2) to the room (2, 0).  You have to add some robot moves at the
     * end of the method.
     * @param args is ignored. 
     */
    public static void main(String[] args) {
	Maze m = new Maze(3, 3);
	m.connectRooms(0, 0, 0, 2);
	m.connectRooms(1, 0, 1, 2);
	m.connectRooms(2, 0, 2, 2);
	m.connectRooms(0, 0, 1, 0);
	m.connectRooms(1, 2, 2, 2);
	Robot robot = new Robot(0);
	robot.setRoom(m.getRoom(0, 2));
	m.print();

	/* Insert the robot moves here */
	m.print();
    }
}
