if (correct) {
printf ("Correct! (Moving from %d to ", item->count);
item->count++;
+ /* We reserve an item count of 0 for an item that has
+ * never been asked. */
+ if (item->count == 0)
+ item->count = 1;
printf ("%d)\n\n", item->count);
} else {
printf (" %s is the correct answer. (Moving from %d to ",
item->response, item->count);
item->count--;
- if (item->count > 0)
+ /* Penalize an incorrect response by forcing the count
+ * negative. */
+ if (item->count >= 0)
item->count = -1;
printf ("%d)\n\n", item->count);
}