From 9a17d20706351f3c614017eda7b24fd3675fa104 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 18 Apr 2007 22:54:07 -0700 Subject: [PATCH] Penalize an incorrect item down to a score of -2 --- mnemon.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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--; } } -- 2.43.0