Fixed last dijkstra classes. Algorithm working for squared maze but bugs for non square mazes.
This commit is contained in:
1 parent
5d7c970e1b
commit
d7368f7cda
10 files changed
+64
-54
No files matched your search
+3
-2
@@ -1,3 +1,4 @@
|
||||
import dijkstra.Dijkstra;
|
||||
import maze.Maze;
|
||||
|
||||
public class MainTest {
|
||||
@@ -5,8 +6,8 @@ public class MainTest {
|
||||
public static void main(String[] args) {
|
||||
|
||||
Maze mazeTest = new Maze("data/labyrinthe.txt") ;
|
||||
|
||||
System.out.println("\n" + mazeTest);
|
||||
|
||||
Dijkstra.dijkstra(mazeTest, mazeTest.getMaze()[1][1]) ;
|
||||
|
||||
mazeTest.saveToTextFile("data/labyOutput.txt");
|
||||
|
||||
|
||||
Reference in new issue
Block a user