This commit is contained in:
@@ -14,10 +14,12 @@ public class Sudoku {
|
||||
|
||||
private final List<Block> blocks;
|
||||
private final List<Cell> cells;
|
||||
private final List<IConstraint> constraints;
|
||||
|
||||
public Sudoku(List<Cell> cells, List<Block> blocks) {
|
||||
public Sudoku(List<Cell> cells, List<Block> blocks, List<IConstraint> constraints) {
|
||||
this.cells = cells;
|
||||
this.blocks = blocks;
|
||||
this.constraints = new ArrayList<>(constraints);
|
||||
}
|
||||
|
||||
public Cell getCell(int x, int y) {
|
||||
@@ -30,6 +32,10 @@ public class Sudoku {
|
||||
return this.cells.get(i);
|
||||
}
|
||||
|
||||
public List<IConstraint> getConstraints() {
|
||||
return constraints;
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return this.blocks.size();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user