Refactorize code #31
No files matched your search
@@ -1,8 +0,0 @@
|
||||
WEEEEEWW
|
||||
EDWWWEEW
|
||||
WEEWWWEE
|
||||
WWEEEEEW
|
||||
EEEWWWWW
|
||||
EWWWWAWW
|
||||
EWWEEEWW
|
||||
EEEEWWWW
|
||||
@@ -3,6 +3,7 @@ import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.Hashtable;
|
||||
|
||||
/** Litteral implementation of the Dijkstra's algorithm given in the subject */
|
||||
public final class Dijkstra {
|
||||
|
||||
private static PreviousInterface dijkstra(GraphInterface g,
|
||||
|
||||
@@ -82,6 +82,14 @@ public final class MazeApp extends JFrame
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user