Hey guys,
I'm new here so I'm not sure, what informations you need, but here you go:
As a school project I want to program Black Jack as a game. The game works, but there's a problem with the question where it asks if you want to pull a card (It's in german, because im swiss sorry). The exact problem is, that the program should automatically stop, if the value of the player's cards or the value of the dealer's cards is more than 21 - but it doesn't.
So my questions are:
--> Why does it not work?
--> How can I fix it?
As a next step I thought of importing Pictures of Black Jack cards (in pygame) and to show the pictures, when this card is pulled during the program.
--> Have you an idea how I should do it?
--> Have you some advices?
As an attachment you find my current program.
Thanks for your help!
I'm new here so I'm not sure, what informations you need, but here you go:
As a school project I want to program Black Jack as a game. The game works, but there's a problem with the question where it asks if you want to pull a card (It's in german, because im swiss sorry). The exact problem is, that the program should automatically stop, if the value of the player's cards or the value of the dealer's cards is more than 21 - but it doesn't.
So my questions are:
--> Why does it not work?
--> How can I fix it?
As a next step I thought of importing Pictures of Black Jack cards (in pygame) and to show the pictures, when this card is pulled during the program.
--> Have you an idea how I should do it?
--> Have you some advices?
As an attachment you find my current program.
Thanks for your help!
Larz60+ write Sep-27-2022, 02:23 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Please use rather than attachments.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Please use rather than attachments.
Attached Files