Refactorize code #31

Merged
regar42 merged 5 commits from refactorize into master 2018-01-14 17:02:44 +00:00
3 changed files with 9 additions and 8 deletions
Showing only changes of commit b1891f7118 - Show all commits

No files matched your search

-8
View File
@@ -1,8 +0,0 @@
WEEEEEWW
EDWWWEEW
WEEWWWEE
WWEEEEEW
EEEWWWWW
EWWWWAWW
EWWEEEWW
EEEEWWWW
+1
View File
@@ -3,6 +3,7 @@ import java.util.ArrayList;
import java.util.HashSet; import java.util.HashSet;
import java.util.Hashtable; import java.util.Hashtable;
/** Litteral implementation of the Dijkstra's algorithm given in the subject */
public final class Dijkstra { public final class Dijkstra {
private static PreviousInterface dijkstra(GraphInterface g, private static PreviousInterface dijkstra(GraphInterface g,
+8
View File
@@ -82,6 +82,14 @@ public final class MazeApp extends JFrame
} }
public void windowOpened(WindowEvent e) { public void windowOpened(WindowEvent e) {
JOptionPane.showMessageDialog(this,
"Welcome to this maze solving application propelled by"
+ " Dijkstra's algorithm.\n\n"
+ "White boxes are walls, black boxes are empty and walkable.\n"
+ "Feel free to edit boxes type by right clicking on them.\n\n"
+ "You can find an example maze in data/labyrinthe.txt.",
"Welcome",
JOptionPane.INFORMATION_MESSAGE);
return; return;
} }