public Environment() { StdDraw.setCanvasSize(WINDOW_HEIGHT, WINDOW_LENGTH); // pixel size of window // Determines how the maze scales within the window StdDraw.setXscale(0, MAZE_SIZE + 2); StdDraw.setYscale(0, MAZE_SIZE + 2); validMaze = false; maze = new Maze(MAZE_SIZE); // create a new maze object StdDraw.show(0); // Show the maze window we have just created maze.draw(); // Draw the maze StdDraw.show(200); // Show this for 200 ms // pass the argument "true" to see the maze solve validMaze = solve(false); // solve the maze, but don't draw it }