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

Method adjust_for_ace

BlackJack_game/blackjack_rr.py:92–95  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

90 self.aces += 1
91
92 def adjust_for_ace(self):
93 while self.value > 21 and self.aces:
94 self.value -= 10
95 self.aces -= 1
96
97
98class Chips:

Callers 1

hitFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected