2 open source projects for flash cards -- you may be sble to hack their code and adapt it to your needs & to work in Adapt:
(1) http://ankisrs.net
(2) http://mnemosyne-proj.org (mostly for language learning)
There may be others,
That's all from me today.