diff options
Diffstat (limited to 'src/card.py')
-rw-r--r-- | src/card.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/card.py b/src/card.py deleted file mode 100644 index c2243a6..0000000 --- a/src/card.py +++ /dev/null @@ -1,13 +0,0 @@ -""" -Defines a struct representing a single card. The struct takes the form: - -(front, back) -""" - -from collections import namedtuple -from hashlib import md5 - -Card = namedtuple('Card', ['front', 'back']) - -def getId(card: Card) -> str: - return md5((card.front + card.back).encode("utf-8")).hexdigest() |