Skip to content

Instantly share code, notes, and snippets.

@bemitc
Created December 8, 2021 03:07
Show Gist options
  • Save bemitc/a4d0175472bde192b7999bfe124f7f00 to your computer and use it in GitHub Desktop.
Save bemitc/a4d0175472bde192b7999bfe124f7f00 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
# simple script to produce a csv to import into anki to incorporate spaced repetition for chessking apps
# this one is for ct-art 4.0 (1200-2400) organized by difficulty
#
# it's based on the webapp, which I assume fully matches the mobile apps
back = "\"If you made any incorrect moves, fail card. Otherwise pass. Always fully calculate full variations without moving pieces.\""
tbl = [
[ "10.1", 26],
[ "20.1", 54],
[ "30.1", 96],
[ "30.2", 35],
[ "40.1", 96],
[ "40.2", 97],
[ "40.3", 49],
[ "50.1", 97],
[ "50.2", 99],
[ "50.3", 99],
[ "50.4", 97],
[ "50.5", 56],
[ "60.1", 98],
[ "60.2", 99],
[ "60.3", 100],
[ "60.4", 54],
[ "70.1", 98],
[ "70.2", 99],
[ "70.3", 27],
[ "80.1", 98],
[ "80.2", 98],
[ "80.3", 50],
[ "90.1", 329],
[ "100.1", 7]
]
for x in tbl:
for y in range(1, x[1]+1):
print('{}.{},{}'.format(x[0], y, back))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment