Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
epicadidash merged 1 commit into DhanushNehru:master from dsg753:Python-Scripts
Aug 26, 2024
Merged

Conversation

@dsg753
Copy link
Contributor

@dsg753 dsg753 commented Aug 26, 2024

PR Title

Update BlackjackGame.py

Summary

These improvements enhance the gameplay experience and make the Blackjack code more robust and user-friendly

Description

  1. Enhanced Betting Functionality:
  2. Improved Card Handling:
  3. Enhanced Game Logic:

The changes are as follows

  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.

  3. 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.

[dsg753]

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.
@epicadidash epicadidash merged commit 6590c5e into DhanushNehru:master Aug 26, 2024
Copy link
Collaborator

Excellent work @dsg753 !!!

Copy link
Contributor Author

dsg753 commented Aug 26, 2024

Thank you .

@dsg753 dsg753 deleted the Python-Scripts branch August 26, 2024 17:06
@dsg753 dsg753 restored the Python-Scripts branch August 26, 2024 17:06
@dsg753 dsg753 deleted the Python-Scripts branch August 26, 2024 17:06
Copy link
Collaborator

Are you on twitter @dsg753

Copy link
Contributor Author

dsg753 commented Aug 27, 2024 via email

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /