Add level names

This commit is contained in:
2026-05-21 18:31:43 +03:00
parent 845cad7f74
commit 740685afc5

View File

@@ -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