Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MazeSolver{
- public MazeSolver(String filename) throws InvalidMazeFileException{
- /**Creates a maze solver that is set up to use the maze designated in filename.*/
- if(/** make not meet specifications for valid maze file*/){
- throw new InvalidMazeException();
- }
- }
- public void setMaze(String filename) throws InvalidMazeFileException{
- /** Resets the current maze to the one given in filename.**/
- if(/** make not meet specifications for valid maze file*/){
- throw new InvalidMazeException();
- }
- }
- public void printMaze(){
- /**Prints the current maze (to the console).**/
- }
- public void solve(){
- /**Solves the current maze.**/
- }
- public void printPath(){
- if(/**current maze has not yet been solved**/){
- System.out.println("The current maze has not been solved yet."); //to console??
- }
- if(/**the current maze has been solved and there is no path from start to finish**/){
- System.out.println("The crrent maze has no path from start to fnish."); //console?
- }
- if(/**current maze has been solved and there is a path from start to finish**/){
- System.out.println(/** sequence of squares int he path from start to finish**/);
- /**ex. (0,0)(1,0)(1,1)(2,1)(2,2)(2,3)(3,3)**/
- }
- }
Add Comment
Please, Sign In to add comment