mutable and immutable cells
Some checks failed
Linux arm64 / Build (push) Failing after 19s

This commit is contained in:
2025-01-10 16:30:25 +01:00
parent 8cd0f6fa12
commit d849f3afc4
4 changed files with 46 additions and 13 deletions

View File

@@ -1,10 +1,10 @@
package sudoku;
public class Cell {
public abstract class Cell {
private static int NOSYMBOLE = -1;
private int symboleIndex;
private Block block = null;
protected static int NOSYMBOLE = -1;
protected int symboleIndex;
protected Block block = null;
public Cell(int symboleIndex) {
this.symboleIndex = symboleIndex;
@@ -21,14 +21,6 @@ public class Cell {
return symboleIndex;
}
public void setSymboleIndex(int symboleIndex) {
this.symboleIndex = symboleIndex;
}
public void clear() {
setSymboleIndex(NOSYMBOLE);
}
public Block getBlock() {
return this.block;
}