Finished Project, Creating Performance Files and References.

This commit is contained in:
Jonathan Turner 2024-02-11 22:58:31 -05:00
parent d4ba6c78d4
commit 8e17de3392
8 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" /> <component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager"> <component name="MavenProjectsManager">

View File

@ -17,12 +17,12 @@
<dependency> <dependency>
<groupId>org.openjfx</groupId> <groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId> <artifactId>javafx-controls</artifactId>
<version>18.0.2</version> <version>21-ea+24</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.openjfx</groupId> <groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId> <artifactId>javafx-fxml</artifactId>
<version>18.0.2</version> <version>21-ea+24</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>

View File

@ -9,6 +9,6 @@ package Assignments.A1.resources;
public class Parameters { public class Parameters {
/* Used to prevent DFS from going down only 1 branch */ /* Used to prevent DFS from going down only 1 branch */
public static final int MAX_DEPTH = 100; // Max number of moves in 8-Puzzle's are 31 moves if solvable. public static final int MAX_DEPTH = 150; // Max number of moves in 8-Puzzle's are 31 moves if solvable.
} }

View File

@ -42,7 +42,7 @@ public class DFS implements Solver {
return current; return current;
} }
if (current.depth > Parameters.MAX_DEPTH || tried.contains(current.toString())) { if (current.depth > Parameters.MAX_DEPTH || tried.contains(current.board.toString())) {
continue; continue;
} }
tried.add(current.toString()); tried.add(current.toString());

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB