feat: premier jet de la conception basique du sudoku
This commit is contained in:
34
app/src/main/java/sudoku/Case.java
Normal file
34
app/src/main/java/sudoku/Case.java
Normal file
@@ -0,0 +1,34 @@
|
||||
package sudoku;
|
||||
|
||||
public class Case {
|
||||
private final int ligne;
|
||||
private final int colonne;
|
||||
private Symbole symbole;
|
||||
|
||||
public Case(int ligne, int colonne, Symbole symbole) {
|
||||
this.ligne = ligne;
|
||||
this.colonne = colonne;
|
||||
this.symbole = symbole;
|
||||
}
|
||||
|
||||
public int getLigne() {
|
||||
return ligne;
|
||||
}
|
||||
|
||||
public int getColonne() {
|
||||
return colonne;
|
||||
}
|
||||
|
||||
public Symbole getSymbole() {
|
||||
return symbole;
|
||||
}
|
||||
|
||||
public void setSymbole(Symbole symbole) {
|
||||
this.symbole = symbole;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return (symbole == null) ? "-" : symbole.toString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user