MCPcopy Index your code
hub / github.com/geekcomputers/Python / shuffleDeck

Function shuffleDeck

BoardGame-CLI/uno.py:46–49  ·  view source on GitHub ↗
(deck: List[str])

Source from the content-addressed store, hash-verified

44
45
46def shuffleDeck(deck: List[str]) -> List[str]:
47 # use Python's built-in shuffle which is efficient and correct
48 random.shuffle(deck)
49 return deck
50
51
52"""Draw card function that draws a specified number of cards off the top of the deck

Callers 1

uno.pyFile · 0.85

Calls 1

shuffleMethod · 0.45

Tested by

no test coverage detected