X-Git-Url: https://git.cworth.org/git?p=mnemon;a=blobdiff_plain;f=mnemon.c;h=920f548f83466729a5c27f4cd2523b99d207774b;hp=9f28dfeb7a88dce584484c5648fafa0b75e49f6e;hb=9a17d20706351f3c614017eda7b24fd3675fa104;hpb=8b5aa52c7a54686d9b4b9d8d117d490eb3b66ba6 diff --git a/mnemon.c b/mnemon.c index 9f28dfe..920f548 100644 --- a/mnemon.c +++ b/mnemon.c @@ -708,14 +708,19 @@ mnemon_do_challenges (mnemon_t *mnemon, } else { printf (" %s is the correct answer.", item->response); - if (item->score >= 0) - unlearned++; - item->score--; /* Penalize an incorrect response by forcing the score * negative. */ if (item->score >= 0) { - item->score = -1; - printf ( " Oops, you knew that, right?\n "); + if (item->score > 0) + printf ( " Oops, you knew that, right?\n "); + unlearned++; + /* We go to -2 to force a little extra reinforcement + * when re-learning an item, (otherwise, it will often + * get asked again immediately where it is easy to get + * a correct response without any learning). */ + item->score = -2; + } else { + item->score--; } }