Space out scheduling for new cards
John Smith

John Smith commited on 2022-8 21:49:17
Showing 1 changed files, with 1 additions and 1 deletions.


A tiny change to the interval-calculation formula makes new (or lapsed)
prompts (i.e. those less than a day old) have intervals that
significantly vary based on the response during initial study.
Instead of getting consistently scheduled for the next day or so,
prompts now get scheduled for review up to three days
after such a review (when the user selects Easy).
... ...
@@ -9,7 +9,7 @@
9 9
 local function update(prompt, revtime, revsucc)
10 10
     if revsucc and revsucc > 0 then
11 11
         local ad = revtime - prompt.time
12
-        prompt.delay = 2.5 ^ revsucc * ad + math.max(40000 - 0.5 * ad, 0)
12
+        prompt.delay = 2.5 ^ revsucc * (ad + math.max(40000 - 0.5 * ad, 0))
13 13
         prompt.succ = prompt.succ + 1
14 14
     else
15 15
         prompt.delay = 30
16 16