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

Method refresh_prompt

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

Source from the content-addressed store, hash-verified

298 self.refresh_prompt()
299
300 def refresh_prompt(self):
301 self.prompt = "{role} [ ${remain} ] >> ({name}) : ".format(
302 role="Player", name=self.name, remain=self.chips.current_amount()
303 )
304
305 def select_choice(self, pattern):
306 my_turn = "My turn now."

Callers 4

__init__Method · 0.95
initial_gameMethod · 0.80
in_betMethod · 0.80
chips_manageMethod · 0.80

Calls 1

current_amountMethod · 0.80

Tested by

no test coverage detected