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

Function hit_or_stand

BlackJack_game/blackjack_rr.py:131–147  ·  view source on GitHub ↗
(deck, hand)

Source from the content-addressed store, hash-verified

129
130
131def hit_or_stand(deck, hand):
132 global playing
133
134 while True:
135 x = input("Would you like to Hit or Stand? Enter '1' or '0' ")
136
137 if x.lower() == "1":
138 hit(deck, hand)
139
140 elif x.lower() == "0":
141 print("You chose to stand. Dealer will hit.")
142 playing = False
143
144 else:
145 print("Wrong input, please try again.")
146 continue
147 break
148
149
150def show_some(player, dealer):

Callers 1

blackjack_rr.pyFile · 0.85

Calls 1

hitFunction · 0.70

Tested by

no test coverage detected