summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthew@masot.net>2024-01-16 22:29:03 -0800
committerMatthew Sotoudeh <matthew@masot.net>2024-01-16 22:29:03 -0800
commit7a4e9ee4c262039d8cf9b90137178f1d3df1b0f7 (patch)
tree95425c19a03fe486b231e0abc4d23254a72ce315
-rw-r--r--.gitignore1
-rw-r--r--quiz.py29
-rw-r--r--sets/kataskopos_alpha.back17
-rw-r--r--sets/kataskopos_alpha.front17
4 files changed, 64 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..726c3ca
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.*.sw*
diff --git a/quiz.py b/quiz.py
new file mode 100644
index 0000000..e1c8986
--- /dev/null
+++ b/quiz.py
@@ -0,0 +1,29 @@
+import random
+import glob
+
+def list_sets():
+ return [l.split("/")[1].split(".front")[0]
+ for l in glob.glob("sets/*.front")]
+
+def load_set(name):
+ front = [l.strip() for l in open(f"sets/{name}.front", "r")]
+ back = [l.strip() for l in open(f"sets/{name}.back", "r")]
+ pairs = list(zip(front, back))
+ random.shuffle(pairs)
+ return pairs
+
+sets = list_sets()
+i = None
+while i not in range(len(sets)):
+ for j in range(len(sets)):
+ print(f"{j + 1}: {sets[j]}")
+ try:
+ i = int(input("Choice: ")) - 1
+ except ValueError:
+ pass
+
+pairs = load_set(sets[i])
+while True:
+ front, back = random.choice(pairs)
+ print(front)
+ input()
diff --git a/sets/kataskopos_alpha.back b/sets/kataskopos_alpha.back
new file mode 100644
index 0000000..252d83a
--- /dev/null
+++ b/sets/kataskopos_alpha.back
@@ -0,0 +1,17 @@
+carry, lead
+always
+each other
+other
+read
+without
+be away
+go away
+will die
+die
+kill
+destroy
+destroyed
+question
+please
+begin, rule
+tomorrow
diff --git a/sets/kataskopos_alpha.front b/sets/kataskopos_alpha.front
new file mode 100644
index 0000000..a732139
--- /dev/null
+++ b/sets/kataskopos_alpha.front
@@ -0,0 +1,17 @@
+ἄγω
+ἀεί
+ἀλλήλων
+ἄλλος
+ἀναγιγνώσκω
+ἄνευ
+ἄπειμι
+ἀπέρχομαι
+ἀποθανοῦμαι
+ἀποθνῄσκω
+ἀποκτείνω
+ἀπόλλυμι
+ἀπώλεσα
+ἆρα
+ἀρέσκω
+ἄρχω
+αὔριον
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback