MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

classicIndianCardMatch.py:44–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42
43class deck:
44 def __init__(self):
45 self.deck = [card(suit, rank) for suit in SUITS for rank in RANKS]
46
47 def shuffle(self):
48 random.shuffle(self.deck)

Callers

nothing calls this directly

Calls 1

cardClass · 0.85

Tested by

no test coverage detected