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 Game #59

Closed
somepulp opened this issue May 5, 2021 · 1 comment · Fixed by #60
Closed

Blackjack Game #59

somepulp opened this issue May 5, 2021 · 1 comment · Fixed by #60
Assignees
Labels
final_project final project from the specific day

Comments

@somepulp
Copy link
Owner

somepulp commented May 5, 2021

Create blackjack game for day 11 project

@somepulp somepulp created this issue from a note in Day 11 - Blackjack game (To do) May 5, 2021
@somepulp somepulp self-assigned this May 5, 2021
@somepulp somepulp added the final_project final project from the specific day label May 5, 2021
@somepulp somepulp added this to the BlackJack Game milestone May 5, 2021
@somepulp
Copy link
Owner Author

somepulp commented May 5, 2021

  • created dictionary to store messages for different game outcomes
  • created functions for dealing cards and replacing ace in appropriate situations
  • created function to find the winner and print the appropriate message (using the dictionary)
  • fixed bug that allowed the user to continue drawing card even if they had gone over 21 and lost
  • used recursion to call function again when the game ends and the user wants to play again

@somepulp somepulp linked a pull request May 5, 2021 that will close this issue
Day 11 - Blackjack game automation moved this from To do to Done May 5, 2021
somepulp added a commit that referenced this issue May 6, 2021
somepulp added a commit that referenced this issue May 6, 2021
somepulp added a commit that referenced this issue May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
final_project final project from the specific day
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant