Skip to content
Snippets Groups Projects
Commit 7c9dece0 authored by Kinadinova Dariya's avatar Kinadinova Dariya
Browse files

deck

parent 5d96ff69
No related branches found
No related tags found
No related merge requests found
......@@ -125,14 +125,21 @@ class Card(object):
$$$ len(set(cartes))
len(cartes)
"""
...
res = []
for i in range(n_card):
val = random.choice(Card.VALUES)
col = random.choice(Card.COLORS)
card = Card(val, col)
res.append(card)
return res
def __eq__(self, card: Card) -> bool:
"""
return True if self equals card
False otherwise
"""
...
return
def __neq__(self, card: Card) -> bool:
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment