fix steps
All checks were successful
Linux arm64 / Build (push) Successful in 43s

This commit is contained in:
2025-02-01 23:00:36 +01:00
parent 78bdefebe5
commit 91c645e34f
5 changed files with 10 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ public class BacktrackingSolver implements Solver {
for (int symbol : possibleSymbols) {
cellToFill.setSymbolIndex(symbol);
addStep(cellToFill, steps);
if (this.solve(doku)) {
if (this.solve(doku, steps)) {
return true;
} else {
cellToFill.setSymbolIndex(Cell.NOSYMBOL);

View File

@@ -49,7 +49,7 @@ public class HumanSolver implements Solver {
cellToFill.setSymbolIndex(possibleSymbols.getFirst());
addStep(cellToFill, steps);
return this.solve(doku);
return this.solve(doku, steps);
}
return doku.isSolved();

View File

@@ -50,7 +50,7 @@ public class MixedSolver implements Solver {
if (possibleSymbols.size() == 1) {
cellToFill.setSymbolIndex(possibleSymbols.getFirst());
addStep(cellToFill, steps);
if (this.solve(doku)) {
if (this.solve(doku, steps)) {
return true;
}
}
@@ -61,7 +61,7 @@ public class MixedSolver implements Solver {
cellToFill.setSymbolIndex(nextSymbol);
addStep(cellToFill, steps);
if (this.solve(doku)) {
if (this.solve(doku, steps)) {
return true;
}
cellToFill.setSymbolIndex(Cell.NOSYMBOL);

View File

@@ -52,7 +52,7 @@ public class RandomSolver implements Solver {
cellToFill.setSymbolIndex(nextSymbol);
addStep(cellToFill, steps);
if (this.solve(doku)) {
if (this.solve(doku, steps)) {
return true;
}
cellToFill.setSymbolIndex(Cell.NOSYMBOL);