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

@@ -0,0 +1,32 @@
package sudoku;
import java.util.ArrayList;
import java.util.List;
public class MutableCell extends Cell{
private final List<Integer> hintsSymbolIndex;
public MutableCell() {
super();
this.hintsSymbolIndex = new ArrayList<>();
}
public MutableCell(int symboleIndex) {
super(symboleIndex);
this.hintsSymbolIndex = new ArrayList<>();
}
public void setSymboleIndex(int symboleIndex) {
this.symboleIndex = symboleIndex;
}
public void clear() {
setSymboleIndex(NOSYMBOLE);
}
public List<Integer> getHints() {
return this.hintsSymbolIndex;
}
}