aboutsummaryrefslogtreecommitdiff
path: root/src/model/difficulty.rs
blob: ea5a9ceefc34db2875ed65f0d600a1b731a1f015 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum Difficulty {
    Again,
    Hard,
    Good,
    Easy,
}

pub fn label(difficulty: Difficulty) -> String {
    match difficulty {
        Difficulty::Again => "Recommencer".to_string(),
        Difficulty::Hard => "Difficile".to_string(),
        Difficulty::Good => "Bon".to_string(),
        Difficulty::Easy => "Facile".to_string(),
    }
}