OUTPUT 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. esty-thomass-macbook:Mazen esty$ java Mazen
  2. Hello! Would you like to (1) solve a maze or (2) have me solve a maze?
  3. 2
  4. Would you like me to solve (1) a new maze or (2) an old maze?
  5. 2
  6. Please enter the filename of the maze you want. (filename.maz)
  7. canon.maz
  8. Path: 0 1 6 7 8 9 14 13 18 17 22 23 24
  9. esty-thomass-macbook:Mazen esty$ java Mazen
  10. Hello! Would you like to (1) solve a maze or (2) have me solve a maze?
  11. 1
  12. Would you like to explore (1) a new maze or (2) an old maze?
  13. 1
  14. Please enter the desired width and height.
  15. 4 3
  16. Would you like to save this to file? (Y/N)
  17. n
  18. Would you like me to show you the list of connections? (Y/N)
  19. n
  20. You are in a maze of twisty little passages, all alike.
  21. Room 0: There are exits to the east (E) and south (S)
  22. e
  23. Room 1: There are exits to the west (W)
  24. w
  25. Room 0: There are exits to the east (E) and south (S)
  26. s
  27. Room 3: There are exits to the north (N) south (S) and west (W)
  28. w
  29. Room 2: There are exits to the east (E)
  30. e
  31. Room 3: There are exits to the north (N) south (S) and west (W)
  32. s
  33. Room 6: There are exits to the north (N) east (E) and south (S)
  34. e
  35. Room 7: There are exits to the north (N) south (S) and west (W)
  36. s
  37. Room 10: There are exits to the north (N) and east (E)
  38. e
  39. You have reached the exit and emerge into the fresh air.
  40. A winner is you!