-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SM-2 algorithm option #25
Conversation
@times_wrong = times_wrong | ||
@grade = grade | ||
@current_time = current_time | ||
@interval = [1, box].max |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next review should always be tomorrow at the earliest.
if @grade >= 3 | ||
@box += 1 | ||
@times_right += 1 | ||
@interval = case @box |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the other SRS algorithms require a box concept, we can re-use it here to avoid having to persist the interval in addition to the easiness factor.
@benjaminhouy, LMK if you have any feedback on this implementation. |
TODO:
Closes #21