gui: difficulties
All checks were successful
Linux arm64 / Build (push) Successful in 1m20s

This commit is contained in:
2025-01-29 11:56:32 +01:00
parent 4190bf15d8
commit 9213a10c17
2 changed files with 21 additions and 5 deletions

View File

@@ -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() {