static public bool solvePuzzle() { if (DFSOn) { initializeArray(); DFSOn = false; } if (PuzzleData.isFinalState(DFS.xTempPuzzle, DFS.yTempPuzzle)) { return(true); } addNextMove(); movePuzzle(); return(false); }
static public bool solvePuzzle() { if (DFSOn) { initializeArray(); DFSOn = false; } if (PuzzleData.isFinalState(DFS.xTempPuzzle, DFS.yTempPuzzle)) { return(true); } addNextMove(); movePuzzle(); return(false); }