Skip to content

MarietteO/Day-11-BEGINNER-Capstone-Project-Blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Day-11-The-Blackjack-Capstone-Project

100 Days of Code: The Complete Python Pro Bootcamp for 2023

Section 11: Day 11 - Beginner - The Blackjack Capstone Project

Skills and concepts:
Deal both user and computer a starting hand of 2 random card values.
Detect when computer or user has a blackjack. (Ace + 10 value card).
If computer gets blackjack, then the user loses (even if the user also has a blackjack). If the user gets a blackjack, then they win (unless the computer also has a blackjack).
Calculate the user's and computer's scores based on their card values.
If an ace is drawn, count it as 11. But if the total goes over 21, count the ace as 1 instead.
Reveal computer's first card to the user.
Game ends immediately when user score goes over 21 or if the user or computer gets a blackjack.
Ask the user if they want to get another card.
Once the user is done and no longer wants to draw any more cards, let the computer play. The computer should keep drawing cards unless their score goes over 16.
Compare user and computer scores and see if it's a win, loss, or draw.
Print out the player's and computer's final hand and their scores at the end of the game.
After the game ends, ask the user if they'd like to play again.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages