Add level names
This commit is contained in:
@@ -40,6 +40,14 @@ impl Difficulty {
|
|||||||
Self::Hard => "Hard (95%)",
|
Self::Hard => "Hard (95%)",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn name(self) -> &'static str {
|
||||||
|
match self {
|
||||||
|
Self::Easy => "Easy",
|
||||||
|
Self::Medium => "Medium",
|
||||||
|
Self::Hard => "Hard",
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// What `Level::generate` returns: the canonical target YAML to grade
|
/// What `Level::generate` returns: the canonical target YAML to grade
|
||||||
|
|||||||
Reference in New Issue
Block a user