Currently working on a project but have run a bit into a stand still with my program.
while(True):
if p1.play() == False:
break
betInput = int(input("How much do you want to bet?"))
while(betInput > p1.wallet or betInput <=0):
betInput = int(input("How much do you want to bet?"))
continue
p1.bet(betInput)
print("")
for i in range(2):
p1.getCard ( d.dealCard() )
p2.getCard ( d.dealCard() )
p1.show()
p2.dealShow()
gameInput = input("Hit or Stand? H\S")
gameInput = gameInput.lower()
p1.gameMove(gameInput)
if p1.winCheck(betInput) == 1:
continue
while gameInput == 'h' and p1.cardCheck() != True or gameInput == 'hit' and p1.cardCheck() != True:
gameInput = input("Hit or Stand? H\S")
gameInput = gameInput.lower()
p1.gameMove(gameInput)
if p1.winCheck(betInput) == 1:
if p1.play() == False:
pass
p2.winCheck(betInput)
The issue is that when I go to break out of "gameInput" loop (to quit the program), it just breaks out of it and then continues on down the code, is there a way I can have it loop back up to the first while loop? Or, is there a way to just terminate the program right then and there?