This commit is contained in:
@@ -3,12 +3,18 @@ package sudoku.structure;
|
||||
//TODO: melvyn va passer par là
|
||||
public enum Difficulty {
|
||||
|
||||
VeryEasy(0.1), Easy(0.25), Medium(0.5), Hard(0.75);
|
||||
|
||||
double factor;
|
||||
VeryEasy("Très facile", 0.1), Easy("Facile", 0.25), Medium("Moyen", 0.5), Hard("Difficile", 0.75);
|
||||
|
||||
Difficulty(double factor) {
|
||||
double factor;
|
||||
String displayName;
|
||||
|
||||
Difficulty(String displayName, double factor) {
|
||||
this.factor = factor;
|
||||
this.displayName = displayName;
|
||||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
return displayName;
|
||||
}
|
||||
|
||||
public double getFactor() {
|
||||
|
||||
Reference in New Issue
Block a user