MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / __init__

Method __init__

projects/Card Game/card.py:57–62  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

55
56class Deck:
57 def __init__(self):
58 self.cards = []
59 for i in range(2, 15):
60 for j in range(4):
61 self.cards.append(Card(i, j))
62 shuffle(self.cards)
63
64 def rm_card(self):
65 if len(self.cards) == 0:

Callers

nothing calls this directly

Calls 2

CardClass · 0.70
shuffleFunction · 0.50

Tested by

no test coverage detected