update validity dokus
All checks were successful
Linux arm64 / Build (push) Successful in 1m5s

This commit is contained in:
fl.du.pr Grens
2025-01-21 22:05:16 +01:00
parent 38d1bc466f
commit e19a9c7b27
4 changed files with 7 additions and 30 deletions

View File

@@ -19,9 +19,6 @@ public class Solver {
}
public MultiDoku solve(MultiDoku doku, List<IConstraint> constraints) throws Exception {
if (!doku.isValid(constraints)) {
throw new Exception("Invalid doku");
}
List<MutableCell> allMutableCells = doku.getMutableCells();
List<MutableCell> remainingCellsToCheck = new ArrayList<>(allMutableCells);
Random rand = new Random();