]> git.cworth.org Git - mnemon/blobdiff - mnemon.c
Introduce 10 new items per session
[mnemon] / mnemon.c
index 321ab1433a9dd235e738354ba36ecc5f2e029acf..3e49777ff67b258022463267e8d9354610a04a2f 100644 (file)
--- a/mnemon.c
+++ b/mnemon.c
@@ -342,7 +342,7 @@ mnemon_init (mnemon_t *mnemon)
     mnemon->num_bins = 0;
     mnemon->bins = NULL;
 
-    mnemon->to_introduce = 3;
+    mnemon->to_introduce = 10;
     mnemon->to_master = 0;
     mnemon->unlearned = 0;
     mnemon->mastered = -1;
@@ -889,13 +889,6 @@ mnemon_handle_response (mnemon_t   *mnemon,
            item->score = 1;
            mnemon->unlearned--;
            printf ("You got it!");
-           if (mnemon->to_introduce == 0 &&
-               mnemon->unlearned == 0 &&
-               mnemon->to_master == 0)
-           {
-               mnemon->to_master = 10;
-               mnemon->mastered = 0;
-           }
        } else if (item->score < 0) {
            printf ("Yes---just give me %d more.",
                    - item->score);
@@ -925,6 +918,14 @@ mnemon_handle_response (mnemon_t   *mnemon,
        }
     }
 
+    if (mnemon->to_introduce == 0 &&
+       mnemon->unlearned == 0 &&
+       mnemon->to_master == 0)
+    {
+       mnemon->to_master = 10;
+       mnemon->mastered = 0;
+    }
+
     printf (" ");
     if (mnemon->to_introduce)
        printf ("%d to come. ", mnemon->to_introduce);