This commit is contained in:
@@ -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) {});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user