summaryrefslogtreecommitdiffstats
path: root/src/card.py
diff options
context:
space:
mode:
authorEddy Pedroni <epedroni@pm.me>2024-09-24 07:17:41 +0200
committerEddy Pedroni <epedroni@pm.me>2024-09-24 07:19:55 +0200
commitc644f52839fe320bf4c8c21661ae8534fd60b37d (patch)
tree870e74fda36bba298b62eba5e4c145506496fe06 /src/card.py
parent22bfa00d56233ddb93394b23313efb7c2fcebbc8 (diff)
Refactor Card out of parser.py, implement brutal scheduler constructor
Diffstat (limited to 'src/card.py')
-rw-r--r--src/card.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/card.py b/src/card.py
new file mode 100644
index 0000000..c4f7541
--- /dev/null
+++ b/src/card.py
@@ -0,0 +1,10 @@
+"""
+Defines a struct representing a single card. The struct takes the form:
+
+(front, back)
+"""
+
+from collections import namedtuple
+
+Card = namedtuple('Card', ['front', 'back'])
+