fix code
All checks were successful
Linux arm64 / Build (push) Successful in 34s

This commit is contained in:
2025-01-10 16:42:12 +01:00
parent d849f3afc4
commit d38e779060

View File

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