Skip to content
Jarrett Ye edited this page Nov 30, 2022 · 3 revisions

Create a new card

card := NewCard()

Do a repeat

w := DefaultWeights()
now := time.Now()
schedulingCards := w.Repeat(card, now)

Show intervals for each rating

againInterval := schedulingCards[Again].Card.ScheduledDays
hardInterval := schedulingCards[Hard].Card.ScheduledDays
goodInterval := schedulingCards[Good].Card.ScheduledDays
easyInterval := schedulingCards[Easy].Card.ScheduledDays

Update card after rating Good

card = schedulingCards[Good].Card
Clone this wiki locally