import java.io.*;
import java.util.*;


/**
 * A driver for testing the Bender robot
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 2.0
 */
public class Driver2
{
    /**
     * The entry point
     *
     * @param args  The command-line arguments (ignored)
     */
    public static void main(String[] args) throws IOException
    {
       Bender            bot;
       List<Direction>   method;
       
       

       bot = new Bender(true);

       bot.powerOn("familyroom.txt");       
       bot.setDelay(100);
       bot.start();

       method = bot.read("box.txt");
       bot.execute(method);
       

       bot.stop();       
    }
    
}
