Вот я реализовал класс карта и колода а вот саму реализацию игры не могу реализовать помогите пожалуйста
from random import shuffle CARD_VALUES = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'K', 'Q', 'A'] CARD_SUITS = ['\u2665', '\u2666', '\u2663', '\u2660'] class Card: def __init__(self, number): self.suit, self.value = divmod(number, 13) def __str__(self): return CARD_VALUES[self.value] + CARD_SUITS[self.suit] def __repr__(self): return str(self) class Deck: singleton = None def __new__(cls,n): if cls.singleton: return cls.singleton else: obj = super().__new__(cls) cls.singleton = obj return obj def __init__(self, n): self.count = 52 if (n == 1): pass elif (n == 2): self.count = 104 else: pass self.cards = [Card(i) for i in range(self.count)] self.shuffle() def __iter__(self): return iter(self.cards) def shuffle(self): shuffle(self.cards) def __str__(self): return 'Deck{}'.format(self.cards)