feat coordinate
All checks were successful
Linux arm64 / Build (push) Successful in 28s

This commit is contained in:
Janet-Doe
2025-01-21 16:59:50 +01:00
parent e5618b70c1
commit 277eb76e60
6 changed files with 133 additions and 3 deletions

View File

@@ -38,10 +38,10 @@ public class SudokuFactory {
return blocs;
}
public static MultiDoku createBasicEmptyRectangleSudoku(int width, int height) {
int symbolCount = width * height;
public static MultiDoku createBasicEmptyRectangleSudoku(int widthBlock, int heightBlock) {
int symbolCount = widthBlock * heightBlock;
List<Cell> cases = initCells(symbolCount);
List<Block> blocs = initRectangleBlocs(cases, width, height);
List<Block> blocs = initRectangleBlocs(cases, widthBlock, heightBlock);
List<IConstraint> constraints = new ArrayList<>();
constraints.add(new ColumnConstraint());
constraints.add(new LineConstraint());