MazeSearch -...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // MazeSearch.java Author: Lewis/Loftus // // Solution to Programming Project 11.3 // // Demonstrates recursion. //******************************************************************** / public class MazeSearch { //----------------------------------------------------------------- // Creates a new maze, prints its original form, attempts to // solve it, and prints out its final form.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //-----------------------------------------------------------------public static void main (String args) { Maze labyrinth = new Maze(); System.out.println (labyrinth); System.out.println("\nTraversal path [row],[column]"); if (labyrinth.traverseMaze (0, 0)) System.out.println ("The maze was successfully traversed!"); else System.out.println ("There is no possible path."); System.out.println (labyrinth); } }...
View Full Document

Ask a homework question - tutors are online