This commit is contained in:
32
app/src/main/java/sudoku/MutableCell.java
Normal file
32
app/src/main/java/sudoku/MutableCell.java
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user