/*
 * the maze contains squares that are clear, walls, path to exit and visited 
 * but not in final path
 */
package poulproj05;

/**
 *
 * @author marsh
 */
public class Maze {
    public static final char CLEAR = ' ', WALL = 'x', CREATURE = 'o', VISTITED = 'v';
    private char[][] maze_;
    private Creature creature_;
    private int startX, startY;
    private final int height, width;
    
    public int getHeight()
    {
        return height;
    }
    public int getWidth()
    {
        return width;
    }
    
    public int getStartX()
    {
        return startX;
    }
    public int getStartY()
    {
        return startY;
    }
    public static Maze LoadFromFile(String file)
    {
        
    }
    public Maze(file)
    {
        this = Maze.LoadFromFile(file);
    }
}

@@ -787,10 +787,149 @@
 ;%0A    %7D%0A
+    public boolean squareIsClear(int x , int y)%0A    %7B%0A        if(maze_%5Bx%5D%5By%5D = CLEAR)%0A            return true;%0A        return false;%0A    %7D%0A
 %7D%0A

Update Maze.java