Guest User

Untitled

a guest
May 25th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. public class MazeSolver{
  2.  
  3.  
  4. public MazeSolver(String filename) throws InvalidMazeFileException{
  5. /**Creates a maze solver that is set up to use the maze designated in filename.*/
  6.  
  7. if(/** make not meet specifications for valid maze file*/){
  8. throw new InvalidMazeException();
  9. }
  10. }
  11. public void setMaze(String filename) throws InvalidMazeFileException{
  12. /** Resets the current maze to the one given in filename.**/
  13.  
  14. if(/** make not meet specifications for valid maze file*/){
  15. throw new InvalidMazeException();
  16. }
  17. }
  18.  
  19. public void printMaze(){
  20. /**Prints the current maze (to the console).**/
  21. }
  22.  
  23. public void solve(){
  24. /**Solves the current maze.**/
  25. }
  26.  
  27. public void printPath(){
  28.  
  29. if(/**current maze has not yet been solved**/){
  30. System.out.println("The current maze has not been solved yet."); //to console??
  31. }
  32. if(/**the current maze has been solved and there is no path from start to finish**/){
  33. System.out.println("The crrent maze has no path from start to fnish."); //console?
  34. }
  35. if(/**current maze has been solved and there is a path from start to finish**/){
  36. System.out.println(/** sequence of squares int he path from start to finish**/);
  37. /**ex. (0,0)(1,0)(1,1)(2,1)(2,2)(2,3)(3,3)**/
  38. }
  39. }
Add Comment
Please, Sign In to add comment