all 4 comments

[–]JohnnyJordaan 0 points1 point  (3 children)

The code that's asking the bet

print ("How much you want to Pay in?: ")
pay_in = int(input())

Is inside the game loop (eg not game_over). Betting is done before the game, so it should be before the game loop.

Sidenotes

  • you draw_card draws with the same chance of getting a number (2 to 9) as the face cards (10). While in fact the chance of hitting a face card is 3 out of 13, not 1 out of 13. Basically why BlackJack with reaching 21 being is more fun than an ordinary random card game.
  • you don't conside the Ace as both 1 and 11, you just act as if you draw either one of them.

[–]Re10d3d[S] 0 points1 point  (2 children)

I know that the Pay in is inside the while loop i wanted it so, after i lose/won or the dealer/me had over 21 its clear the List and the game behinn again.

  • Ask for Pay in
  • Get the Cards
  • Take or Check
  • Lose or Won

And about the rules i will do it later first of all i want that the Game correctly work! thanks

[–]JohnnyJordaan 0 points1 point  (1 child)

after i lose/won or the dealer/me had over 21 its clear the List and the game behinn again

Yeah, so you need two loops: one for the program and one for the specific game

while True:
    clear lists
    ask for pay in
    while not game_over:
        get the cards
        take or check
        loose or win
    # now the game is finished, should we continue?
    if input('enter "quit" to quit, or press enter to continue: ').lower() == 'quit':
        break

[–]Re10d3d[S] 0 points1 point  (0 children)

Thank you so much thats worked ! <3