nabildroid / flashcards

spaced repetition flashcards
1 stars 1 forks source link

pause time should depend on previous card difficulty #2

Open nabildroid opened 2 years ago

nabildroid commented 2 years ago

https://github.com/nabildroid/flashcards/blob/821b751e31ff32ef66b1952639cc5db8ea12007c/lib/cubits/practice_cubit.dart#L168

nabildroid commented 2 years ago

if a flashcard was previously marked as hard it should be paused for a longer period than a card marked as easy

nabildroid commented 2 years ago

you can use a mapping function that maps the ease factor and integer 5 -> 20 seconds but the problem is we don't know the data range of such "ease factor" sure the minimum is 1.3, but what about the maximum

well, we can compute the data range the moment we get all the progress, maybe we store this data in the practice sate