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

Method in_bet

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

Source from the content-addressed store, hash-verified

462 print("\n" + "-" * 20 + " Start Game " + "-" * 20)
463
464 def in_bet(self):
465 in_bet = "\n\tI want to bet: "
466 not_invalid = True
467 self.player.speak(in_bet, end_char="")
468 while not_invalid:
469 try:
470 self.player.chips.bet_amount = input()
471 except ValueError as e:
472 print(e)
473 self.player.speak(in_bet, end_char="")
474 continue
475 except KeyboardInterrupt:
476 print("")
477 self.recorder.draw_diagram()
478 quit()
479 else:
480 self.player.refresh_prompt()
481 # self.player.speak()
482 not_invalid = False
483
484 def deal_card(self):
485 # dealer

Callers 1

playMethod · 0.95

Calls 4

quitFunction · 0.85
speakMethod · 0.80
draw_diagramMethod · 0.80
refresh_promptMethod · 0.80

Tested by

no test coverage detected