Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/Search.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public Search() {
* Error 7: No solution exists for the given maxDepth<br>
* Error 8: Probe limit exceeded, no solution within given probMax
*/
public synchronized String solution(String facelets, int maxDepth, long probeMax, long probeMin, int verbose) {
public String solution(String facelets, int maxDepth, long probeMax, long probeMin, int verbose) {
int check = verify(facelets);
if (check != 0) {
return "Error " + Math.abs(check);
Expand All @@ -184,8 +184,10 @@ public synchronized String solution(String facelets, int maxDepth, long probeMax
this.verbose = verbose;
this.solution = null;
this.isRec = false;

CoordCube.init(false);

if(CoordCube.initLevel==0){
CoordCube.init(false);
}
initSearch();

return (verbose & OPTIMAL_SOLUTION) == 0 ? search() : searchopt();
Expand Down