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

Method ask_insurance

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

Source from the content-addressed store, hash-verified

276 self.trigger = 0
277
278 def ask_insurance(self):
279 buy_insurance = (
280 "(Insurance pay 2 to 1)\n"
281 "\tMy Face card is an Ace.\n"
282 "\tWould your like buy a insurance ?"
283 )
284 self.speak(content=buy_insurance)
285
286 def strategy_trigger(self, deck):
287 if self.is_point("<", BASE_VALUE):

Callers 1

menuMethod · 0.80

Calls 1

speakMethod · 0.80

Tested by

no test coverage detected