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

@@ -56,7 +56,8 @@ public class Sudoku {
for (int i = 0; i < values.size(); i++) {
int x = i%this.blocks.size();
int y = (i-x)/this.blocks.size();
if (!this.setCellSymbol(x, y, values.get(i))) {
int value = values.get(i);
if (!this.setCellSymbol(x, y, value)) {
return false;
}
}
@@ -82,12 +83,6 @@ public class Sudoku {
return this.blocks.size();
}
public boolean isValid(List<IConstraint> constraints) {
// not implemented
// for eachcase check contraintes
return false;
}
public List<Cell> getCells() {
return this.cells;
}