-
-
Notifications
You must be signed in to change notification settings - Fork 387
Update BlackjackGame.py #263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Enhanced Betting Functionality: Valid Bet Validation: The placeBet() method now ensures that players enter valid bets within the specified range and that they have sufficient funds. Clear Error Messages: Informative messages are provided for invalid inputs or insufficient funds. 2. Improved Card Handling: Ace Value Adjustment: The adjustAceValue() method correctly handles cases where an ace's value should be reduced to 1 to prevent a bust. . Enhanced Game Logic: Simplified Winner Determination: The playRound3() method now uses a separate determine_winner() function to improve code readability and maintainability. 4. Additional Features: Initial Bankroll: Players now start with an initial bankroll of 1000 units. Betting Limits: Minimum and maximum betting limits have been introduced.
Excellent work @dsg753 !!!
Thank you .
Are you on twitter @dsg753
Thank you
Yes Im on tweeter @dsg753
... On Tue, Aug 27, 2024, 6:29 PM Adwait Dash ***@***.***> wrote:
Are you on twitter @dsg753 <https://github.com/dsg753>
—
Reply to this email directly, view it on GitHub
<#263 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BKTGHM4MTUGM5ELJWA5IHELZTSLNDAVCNFSM6AAAAABNEH5K5GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJSHA4DAOBWGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Title
Update BlackjackGame.py
Summary
These improvements enhance the gameplay experience and make the Blackjack code more robust and user-friendly
Description
The changes are as follows
Enhanced Betting Functionality:
Valid Bet Validation: The placeBet() method now ensures that players enter valid bets within the specified range and that they have sufficient funds.
Clear Error Messages: Informative messages are provided for invalid inputs or insufficient funds.
Improved Card Handling:
Ace Value Adjustment: The adjustAceValue() method correctly handles cases where an ace's value should be reduced to 1 to prevent a bust.
Enhanced Game Logic:
Simplified Winner Determination: The playRound3() method now uses a separate determine_winner() function to improve code readability and maintainability.
Additional Features:
Initial Bankroll: Players now start with an initial bankroll of 1000 units.
Betting Limits: Minimum and maximum betting limits have been introduced.
[dsg753]