Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/geekcomputers/Python
/ shuffle
Method
shuffle
classicIndianCardMatch.py:47–48 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
45
self.deck = [card(suit, rank)
for
suit in SUITS
for
rank in RANKS]
46
47
def
shuffle(self):
48
random.shuffle(self.deck)
49
50
def
dealCard(self):
51
return
random.choice(self.deck)
Callers
1
classicIndianCardMatch.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected