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

Method double_bet

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

Source from the content-addressed store, hash-verified

157 self._bet_amount = value
158
159 def double_bet(self):
160 if self.can_double():
161 self._bet_amount *= 2
162 self.is_double = True
163 else:
164 over_tips = "Not enough chips || "
165 cannot_double = "CAN'T DO DOUBLE"
166 raise ValueError(Chips.get_tips(over_tips + cannot_double))
167
168 @property
169 def insurance(self):

Callers 1

chips_manageMethod · 0.80

Calls 2

can_doubleMethod · 0.95
get_tipsMethod · 0.80

Tested by

no test coverage detected