Prep for Delivery

This commit is contained in:
2025-04-18 13:06:54 -06:00
parent 7a0b0cd465
commit 20a86deb60
9 changed files with 73 additions and 1225 deletions
+2 -2
View File
@@ -197,8 +197,8 @@ pub fn inner_loop(unit: Module, learner: &mut profile::Learner) {
}
pub fn select_next_unit(learner: &profile::Learner) -> Option<units::Module> {
let mut modules = units::Module::iter();
if learner.progress.get(&Module::Introduction).map_or(true, |p| p.get_probability() == 0.0) {
let modules = units::Module::iter();
if learner.progress.get(&Module::Introduction).map_or(true, |p| p.get_probability() < 0.5) {
return Some(crate::Module::Introduction);
}
for module in modules {