aboutsummaryrefslogtreecommitdiff
path: root/src/model/difficulty.rs
blob: 727ce4b3d10f75463de321393b7dae7de807fa67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
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(),
    }
}