UNB/ CS/ David Bremner/ teaching/ java/ MazeTest.java
//
//  MazeTest.java
//  MazeTest
//
//  Created by Gerhard Dueck on 11-02-08.
//  Copyright (c) 2011 University of New Brunswick. All rights reserved.
//
import java.util.*;
import java.io.*;

public class MazeTest {

    public static void main (String args[]) {
                Maze myM = new Maze();
                myM.readMap(args[0]);
                myM.displayMap();
                boolean hasPath = myM.path();
                if(hasPath){
                        System.out.println("A path was found!");
                }
                else{
                        System.out.println("No path was found!");
                }
                myM.displayMap();
    }
}