refractoring
All checks were successful
Linux arm64 / Build (push) Successful in 33s

This commit is contained in:
Janet-Doe
2025-01-21 13:49:22 +01:00
parent 5a07f9347c
commit e5618b70c1
8 changed files with 60 additions and 36 deletions

View File

@@ -2,6 +2,7 @@ package sudoku.constraint;
import sudoku.Block;
import sudoku.Cell;
import sudoku.MutableCell;
import sudoku.Sudoku;
public class BlockConstraint implements IConstraint{
@@ -9,7 +10,7 @@ public class BlockConstraint implements IConstraint{
@Override
public boolean canBePlaced(final Sudoku s, int x, int y, int newSymbolIndex) {
Block bloc = s.getCell(x, y).getBlock();
return !bloc.getCells().contains(new Cell(newSymbolIndex));
return !bloc.getCells().contains(new MutableCell(newSymbolIndex));
}
}