Created parameters to allow for changable ways of the algorithms conditions.
This commit is contained in:
parent
cd266d583d
commit
945ef8fff6
@ -1,8 +0,0 @@
|
|||||||
package Assignments.A1.resources;
|
|
||||||
|
|
||||||
public class Constants {
|
|
||||||
|
|
||||||
/* Used to prevent DFS from going down only 1 branch */
|
|
||||||
public static final int MAX_DEPTH = 100;
|
|
||||||
|
|
||||||
}
|
|
14
src/Assignments/A1/resources/Parameters.java
Normal file
14
src/Assignments/A1/resources/Parameters.java
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package Assignments.A1.resources;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Holds any constants needed. May be re-modified later to allow for configuration.
|
||||||
|
*
|
||||||
|
* @author Jonathan Turner
|
||||||
|
* @version Spring 2024
|
||||||
|
*/
|
||||||
|
public class Parameters {
|
||||||
|
|
||||||
|
/* Used to prevent DFS from going down only 1 branch */
|
||||||
|
public static final int MAX_DEPTH = 40; // Max number of moves in 8-Puzzle's are 31 moves if solvable.
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user