Hello, could anyone show me how to program a very basic spaced-repetition flashcard application for the command line? In a nutshell I'd like to know how to implement some sort a vocabulary trainer that shows a particular card more often if it's not well known and is able to keep track of statistics across sessions (similar to anki, mnemosyne, granule, jmemorize, but very, very basic and instructional). Thank you!
Ooh, that's all really good stuff. Unfortunately that's not the sort of thing you ask others to show you. Sounds like you've got worked out what you want. If I were being sarcastic right now I'd say:
All you need to do is
- write a vocabulary trainer.
- that shows a particular card more often if it's not well known and
- is able to keep track of statistics across sessions.
Break it down:
- write a vocabulary trainer. This means you'll need a data structure that keeps a question, a right answer and a number of "distractors" which it will then display in random order.
- that shows a particular card more often if it's not well known - So you'll need another data structure that keeps track of when you answer questions correctly. You'll also need a queue structure.
- is able to keep track of statistics across sessions - This means storing all relevant data in a file. So you'll need to study file I/O.
Now tackle each problem the way you'd eat an elephant. One bite at a time.
[/list]