Simple module that holds the cards of multiple players
Code
class Hand:def__init__(# Max amount of cards it can be holdself, max_cards: Optional[int] =None ):self._max_cards = max_cardsself.cards: List[Card] = []def__getitem__(self, value: int):returnself.cards[value]def__len__(self):returnlen(self.cards)def__iter__(self) -> Iterator[Card]:returniter(self.cards)def__repr__(self):return"\n".join(str(card) for card inself.cards)