:param suit: pattern in the card :param rank: point in the card :param face: show or cover the face(point & pattern on it)
(self, suit, rank, face=True)
| 45 | __slots__ = "suit", "rank", "is_face" |
| 46 | |
| 47 | def __init__(self, suit, rank, face=True): |
| 48 | """ |
| 49 | :param suit: pattern in the card |
| 50 | :param rank: point in the card |
| 51 | :param face: show or cover the face(point & pattern on it) |
| 52 | """ |
| 53 | self.suit = suit |
| 54 | self.rank = rank |
| 55 | self.is_face = face |
| 56 | |
| 57 | def __repr__(self): |
| 58 | fmt_card = "\t<rank: {rank:2}, suit: {suit:8}>" |