This commit is contained in:
@@ -3,11 +3,11 @@ package sudoku;
|
||||
public abstract class Cell {
|
||||
|
||||
protected static int NOSYMBOLE = -1;
|
||||
protected int symboleIndex;
|
||||
protected int symbolIndex;
|
||||
protected Block block = null;
|
||||
|
||||
public Cell(int symboleIndex) {
|
||||
this.symboleIndex = symboleIndex;
|
||||
public Cell(int symbolIndex) {
|
||||
this.symbolIndex = symbolIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -17,8 +17,8 @@ public abstract class Cell {
|
||||
this(NOSYMBOLE);
|
||||
}
|
||||
|
||||
public int getSymboleIndex() {
|
||||
return symboleIndex;
|
||||
public int getSymbolIndex() {
|
||||
return symbolIndex;
|
||||
}
|
||||
|
||||
public Block getBlock() {
|
||||
@@ -33,7 +33,7 @@ public abstract class Cell {
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj instanceof Cell otherCell)
|
||||
return otherCell.getSymboleIndex() == this.getSymboleIndex();
|
||||
return otherCell.getSymbolIndex() == this.getSymbolIndex();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user