Maze - /* / Maze.java Author: Lewis/Loftus / / Solution to...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // Maze.java Author: Lewis/Loftus // // Solution to Programming Project 11.3 // // Represents a maze of characters. The goal is to get from the // top left corner to the bottom right, following a path of 1s. // Prints the path of the final solution as it is discoverd. //******************************************************************** / public class Maze { private final int TRIED = 3; private final int PATH = 7; private int[][] maze = { {1,1,1,0,1,1,0,0,0,1,1,1,1}, {1,0,1,1,1,0,1,1,1,1,0,0,1}, {0,0,0,0,1,0,1,0,1,0,1,0,0}, {1,1,1,0,1,1,1,0,1,0,1,1,1}, {1,0,1,0,0,0,0,1,1,1,0,0,1}, {1,0,1,1,1,1,1,1,0,1,1,1,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0}, {1,1,1,1,1,1,1,1,1,1,1,1,1} }; private int[][] grid; //----------------------------------------------------------------- // Creates a working copy of the maze to compute the final solution. // The original maze is not modified.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Page1 / 2

Maze - /* / Maze.java Author: Lewis/Loftus / / Solution to...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online