Skip to content
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

Blackjack bug fixes #2550

Merged
merged 2 commits into from
Feb 16, 2016
Merged

Blackjack bug fixes #2550

merged 2 commits into from
Feb 16, 2016

Conversation

DakkJaniels
Copy link
Contributor

-Fixed bet increment/decrement logic. Will allow player to max out bet to available money. When decrementing the bet, will remove the portion not part of the standard decrement, if not a multiple of that decrement.

-Fixed the gameMenu logic regarding when to allow splits and double downs, as related to player money and the current wager. Existing logic would not allow a double down or split under certain conditions (e.g., when trying to double down after splitting, could not double down if player money was not at least 4x greater than the current bet, logic should actual check if player is capable of adding another currentBet to wager).

-Fixed dealer winning on blackjack even if player has blackjack. Now it's a push if player also has blackjack.

-Fixed bet increment/decrement logic. Will allow player to max out bet to available money. When decrementing the bet, will remove the portion not part of the standard decrement, if not a multiple of that decrement.

-Fixed the gameMenu logic regarding when to allow splits and double downs, as related to player money and the current wager. Existing logic would not allow a double down or split under certain conditions (e.g., when trying to double down after splitting, could not double down if player money was not at least 4x greater than the current bet, logic should actual check if player is capable of adding another currentBet to wager).

-Fixed dealer winning on blackjack even if player has blackjack. Now it's a push if player also has blackjack.
@niamu
Copy link
Member

niamu commented Feb 13, 2016

This has needed some love for a while now. Great work!

@CalebJohn
Copy link
Member

Awesome work LGTM!

niamu added a commit that referenced this pull request Feb 16, 2016
@niamu niamu merged commit e2e4d05 into hawkthorne:master Feb 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants