Hi i am experiencing an error, where if users take insurance, although it pays out the game continues even if dealer has blackjack - because my logic calculating whether a player has an ACE that goes over 21 doesnt work correctly, partial debugging code such as printing the cards out and saying that the ace is present can be found in the code, as well as when running it .
#๐ Logical Error In PyBlackjack
10 messages ยท Page 1 of 1 (latest)
@woven star
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
I would use a debugger to step through that section of code to find out where it goes wrong
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.