Added support for both Mac M1 and X86 Windows
This commit is contained in:
parent
f096276422
commit
48d2c51652
11
pom.xml
11
pom.xml
@ -14,20 +14,15 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.fxmisc.richtext</groupId>
|
||||
<artifactId>richtextfx</artifactId>
|
||||
<version>0.11.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.openjfx</groupId>
|
||||
<artifactId>javafx-controls</artifactId>
|
||||
<version>12.0.2</version>
|
||||
<version>18.0.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.openjfx</groupId>
|
||||
<artifactId>javafx-fxml</artifactId>
|
||||
<version>20.0.1</version>
|
||||
<version>18.0.2</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
@ -42,7 +37,7 @@
|
||||
<artifactId>javafx-maven-plugin</artifactId>
|
||||
<version>0.0.8</version>
|
||||
<configuration>
|
||||
<mainClass>edu.jturn.cs3642.CS3642-Artificial_Intelligence/Assignments.A1.GUIDriver</mainClass>
|
||||
<mainClass>Assignments/A1/GUILauncher</mainClass>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
@ -13,35 +13,6 @@ public class DFS {
|
||||
private final Board solved = new Board();
|
||||
private final List<String> tried = new ArrayList<>();
|
||||
|
||||
/* Commented out for future reference. */
|
||||
// public Board dfs(Board root, int depth, ArrayList<String> visited) {
|
||||
// counter++;
|
||||
// if (root.equals(solved)) {
|
||||
// return root;
|
||||
// }
|
||||
//
|
||||
// ArrayList<String> directParents = new ArrayList<>(visited);
|
||||
// if (depth == Parameters.MAX_DEPTH || visited.contains(root.toString()) || tried.contains(root.toString())) {
|
||||
// return null;
|
||||
// }
|
||||
// directParents.add(root.toString());
|
||||
// tried.add(root.toString());
|
||||
//
|
||||
// List<Move> moves = root.getMoves();
|
||||
// int moveNum = 1;
|
||||
// for (Move next : moves) {
|
||||
//
|
||||
// Board child = next.getBoard();
|
||||
// child.swap(next);
|
||||
// moveNum++;
|
||||
// Board board = dfs(child, depth+1, directParents);
|
||||
// if (board != null) {
|
||||
// return board;
|
||||
// }
|
||||
// }
|
||||
// return null;
|
||||
// }
|
||||
|
||||
public Board traverse(Board root, int depth) {
|
||||
Stack<Board> stack = new Stack<>();
|
||||
stack.push(root);
|
||||
|
Loading…
Reference in New Issue
Block a user