fix : création MultiDoku à résoudre avec cell imuable
All checks were successful
Linux arm64 / Build (push) Successful in 53s
All checks were successful
Linux arm64 / Build (push) Successful in 53s
This commit is contained in:
@@ -198,5 +198,11 @@ public class MultiDoku {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setFilledCellsImmutable() {
|
||||
for (Cell filledCell : getFilledCells()) {
|
||||
filledCell.setImmutable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -217,7 +217,7 @@ public class SudokuFactory {
|
||||
public static MultiDoku createBasicXShapedMultidoku(int size) {
|
||||
assert (size > 1);
|
||||
|
||||
/**
|
||||
/*
|
||||
* 2 3
|
||||
* 1
|
||||
* 4 5
|
||||
@@ -245,6 +245,7 @@ public class SudokuFactory {
|
||||
if (!successfull) {
|
||||
throw new Exception("Canno't create this doku with this difficulty");
|
||||
}
|
||||
doku.setFilledCellsImmutable();
|
||||
return doku;
|
||||
}
|
||||
|
||||
@@ -260,6 +261,7 @@ public class SudokuFactory {
|
||||
if (!successful) {
|
||||
throw new Exception("Cannot create this Doku with this difficulty");
|
||||
}
|
||||
doku.setFilledCellsImmutable();
|
||||
return doku;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user