This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user