From: Carl Worth Date: Thu, 19 Apr 2007 05:54:07 +0000 (-0700) Subject: Penalize an incorrect item down to a score of -2 X-Git-Url: https://git.cworth.org/git?p=mnemon;a=commitdiff_plain;h=9a17d20706351f3c614017eda7b24fd3675fa104 Penalize an incorrect item down to a score of -2 --- 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--; } }