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

Method __init__

BlackJack_game/blackjack_simulate.py:402–412  ·  view source on GitHub ↗
(self, username)

Source from the content-addressed store, hash-verified

400
401class BlackJack:
402 def __init__(self, username):
403 self.deck = Deck()
404 self.dealer = Dealer("Bob")
405 self.player = Player(username.title(), 1000)
406 self.recorder = Recorder()
407 self.go_on = True
408 self.first_hand = True
409 self.choice = None
410 self.winner = None
411 self.bust = False
412 self.res = None
413
414 def play(self):
415 while self.player.chips:

Callers

nothing calls this directly

Calls 4

DealerClass · 0.85
PlayerClass · 0.85
RecorderClass · 0.85
DeckClass · 0.70

Tested by

no test coverage detected