refactor
All checks were successful
Linux arm64 / Build (push) Successful in 31s

This commit is contained in:
Melvyn
2025-02-02 00:16:19 +01:00
parent 5dfe4382fe
commit 70eef1646d

View File

@@ -341,8 +341,7 @@ public class SudokuFactory {
public static MultiDoku createBasicEmptyRandomBlockDoku(int blockSize, List<IConstraint> constraints) {
int blockCellCount = blockSize * blockSize;
List<Cell> cells = initCells(blockCellCount);
List<Cell> homeLessCells = new ArrayList<>();
homeLessCells.addAll(cells);
List<Cell> homeLessCells = new ArrayList<>(cells);
List<Block> blocks = new ArrayList<>();
Random r = new Random();
for (int i = 0; i < blockCellCount; i++) {