(deck, hand)
| 129 | |
| 130 | |
| 131 | def 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 | |
| 150 | def show_some(player, dealer): |