This commit is contained in:
@@ -18,7 +18,7 @@ public class Sudoku {
|
||||
public Sudoku(List<Cell> cells, List<Block> blocks, List<IConstraint> constraints) {
|
||||
this.cells = cells;
|
||||
this.blocks = blocks;
|
||||
this.constraints = new ArrayList<>(constraints);
|
||||
this.constraints = constraints;
|
||||
}
|
||||
|
||||
public Cell getCell(int x, int y) {
|
||||
@@ -45,6 +45,14 @@ public class Sudoku {
|
||||
throw new Error("Function isValid() not implemented");
|
||||
}
|
||||
|
||||
public List<Cell> getCells() {
|
||||
return this.cells;
|
||||
}
|
||||
|
||||
public List<Block> getBlocks() {
|
||||
return this.blocks;
|
||||
}
|
||||
|
||||
public List<MutableCell> getMutableCells() {
|
||||
List<MutableCell> mutableCells = new ArrayList<>();
|
||||
for (Cell cell : this.cells) {
|
||||
|
||||
Reference in New Issue
Block a user