Add message on window opening
* On lauch, explain the color of wall/empty boxes and that an example maze can be found in data/labyrinthe.txt * Remove legacy labyOutput.txt * Add a tiny comment to the class Dijkstra
This commit is contained in:
1 parent
dc8de8c707
commit
b1891f7118
3 files changed
+9
-8
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.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,
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user