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

Method __init__

BlackJack_game/blackjack_simulate.py:106–114  ·  view source on GitHub ↗

:param amount: the chips you own

(self, amount)

Source from the content-addressed store, hash-verified

104
105class Chips:
106 def __init__(self, amount):
107 """
108 :param amount: the chips you own
109 """
110 self._amount = amount
111 self._bet_amount = 0
112 self._insurance = 0
113 self.is_insurance = False
114 self.is_double = False
115
116 def __bool__(self):
117 return self.amount > 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected