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

Method built

BlackJack_game/blackjack_simulate.py:82–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

80 return len(self.cards)
81
82 def built(self):
83 for _ in range(self.num):
84 ranks = [x for x in range(1, 14)]
85 suits = "Spades Heart Clubs Diamonds".split()
86 for suit in suits:
87 for rank in ranks:
88 card = Card(suit, rank)
89 self.cards.append(card)
90
91 def shuffle(self):
92 for _ in range(self.num):

Callers 2

__init__Method · 0.95
rebuiltMethod · 0.95

Calls 2

CardClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected