/Users/lyon/j4p/src/bookExamples/ch08ArraysAndVectors/maze/Amazed.java
|
1 package bookExamples.ch08ArraysAndVectors.maze;
2
3
4 public class Amazed {
5 public static void main(String args[]) {
6
7 String[] mazeString = getMaze();
8 MazeUtility.setMazeString(mazeString);
9
10 MazeUtility.print();
11 System.out.println("--------- Solution ----");
12 MazeUtility.solve();
13 MazeUtility.print();
14
15 }
16
17 private static String[] getMaze() {
18 String mazeString[] = {
19 "#################",
20 "#...............#",
21 "#.....#..#####..#",
22 "#.....#......#..#",
23 "#.....#.#....#..#",
24 "#.....#..#####..#",
25 "#E....#......#..#",
26 "#.....#.#....#..#",
27 "#.....#..#####..#",
28 "#.....#......#..#",
29 "#.....#.#....#..#",
30 "#.....#..#####..#",
31 "#.....#......#..#",
32 "#.....#.#....#..#",
33 "##.###########.##",
34 "#.......#....S..#",
35 "#################"
36 };
37 return mazeString;
38 }
39
40 }
41
42
43