This commit is contained in:
Dmitry Fedotov
2023-12-17 11:51:39 +03:00
parent 14e3008925
commit 1ab7137882
8 changed files with 785 additions and 2 deletions

View File

@@ -7,8 +7,6 @@ class Card(object):
card_re = re.compile(r'Card +(\d+): ')
def __init__(self, inp):
m = self.card_re.search(inp)
if not m:
print(inp)
self.card_num = m.group(1)
inp = inp.replace(m.group(0), '')
winning, have = inp.split('|')