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

Method reset_chip

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

Source from the content-addressed store, hash-verified

181 return self.amount - self.bet_amount - self.insurance
182
183 def reset_chip(self):
184 self._bet_amount = 0
185 self._insurance = 0
186 self.is_double = False
187 self.is_insurance = False
188
189 def can_double(self):
190 return self.current_amount() - self.bet_amount >= 0

Callers 1

initial_gameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected