diff options
author | Eddy Pedroni <epedroni@pm.me> | 2024-09-24 07:17:41 +0200 |
---|---|---|
committer | Eddy Pedroni <epedroni@pm.me> | 2024-09-24 07:19:55 +0200 |
commit | c644f52839fe320bf4c8c21661ae8534fd60b37d (patch) | |
tree | 870e74fda36bba298b62eba5e4c145506496fe06 /src/card.py | |
parent | 22bfa00d56233ddb93394b23313efb7c2fcebbc8 (diff) |
Refactor Card out of parser.py, implement brutal scheduler constructor
Diffstat (limited to 'src/card.py')
-rw-r--r-- | src/card.py | 10 |
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']) + |