]> git.cworth.org Git - mnemon/blobdiff - mnemon.c
Print before-and-after bin numbers
[mnemon] / mnemon.c
index 1eebd20df491681e42a21190451ec55116f3893b..d28657bfe20d8a4c877bbbb30edf98d2694a74a7 100644 (file)
--- a/mnemon.c
+++ b/mnemon.c
@@ -649,18 +649,16 @@ mnemon_do_challenges (mnemon_t *mnemon)
            mnemon_remove_bin (mnemon, bin);
 
        if (correct) {
-           printf ("Correct!\n\n");
-           if (item->count < 0)
-               item->count = 1;
-           else
-               item->count++;
+           printf ("Correct! (Moving from %d to ", item->count);
+           item->count++;
+           printf ("%d)\n\n", item->count);
        } else {
-           printf ("  %s is the correct answer.\n\n",
-                   item->response);
+           printf ("  %s is the correct answer. (Moving from %d to ",
+                   item->response, item->count);
+           item->count--;
            if (item->count > 0)
                item->count = -1;
-           else
-               item->count--;
+           printf ("%d)\n\n", item->count);
        }
 
        bin = mnemon_get_bin (mnemon, item->count);