zjosua / anki-mc

Multiple choice questions for Anki.
https://ankiweb.net/shared/info/1566095810
GNU Affero General Public License v3.0
49 stars 16 forks source link

Refactor shuffling in table creation #102

Closed 3ter closed 1 year ago

3ter commented 1 year ago

Logic should now be easier to follow and using only a slice of the resulting answer possibilities is now a one-liner.

3ter commented 1 year ago

This is a potential preparation for #99 if still requested by the community. Apart from that it makes the code better readable and easier to maintain.

I didn't increase the version as there are no changes for the user (yet) so they shouldn't need to update.