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

Function stand

blackJackGUI.py:135–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133
134
135def stand():
136 if in_play == True:
137 while dealer_card.get_value() < 17:
138 dealer_card.add_card(deck.deal_card())
139 if dealer_card.get_value() > 21:
140 outcome = "you won!!"
141 elif player_card.get_value() <= dealer_card.get_value():
142 outcome = "you lose"
143 else:
144 outcome = "you won!!"
145 score1 = str(player_card.get_value())
146 score2 = str(dealer_card.get_value())
147
148
149def hit():

Callers

nothing calls this directly

Calls 3

get_valueMethod · 0.80
add_cardMethod · 0.45
deal_cardMethod · 0.45

Tested by

no test coverage detected