View Code? Open in Web Editor
NEW
A basic terminal-based blackjack game written in Python.
blackjack's Introduction
![Standard Deck of 52 Cards](https://github.com/leotaozeng/blackjack/raw/main/standard-deck-of-cards.png)
- Build a terminal program using Python
- Add at least one interactive feature using input()
- Use Git version control
- Use the command line and file navigation
- Write a technical blog post on the project
- Setup the Deck: We'll create a standard deck of 52 cards
- Deal Cards: Both the dealer and the player will be dealt two cards at the beginning
- Player's Turn: The player can choose to hit or stand
- Dealer's Turn: The dealer must hit if their total is below 17
- Determine the Winner: Compare the hands to see who wins
blackjack's People
Contributors
Watchers
blackjack's Issues
Create a new GitHub repository for the project blackjack and add a Python file inside.
Set up Git tracking in the project directory and make sure to add and commit changes as I make them.
Now that we have a working program, go back to it and see what we can improve.
This is the bulk portion of the project.
Start with creating the variables and then text prompts to let the user understand the program.
To add a split feature for the player in the Blackjack game, we need to make several modifications.
- The split option is available if the player's initial two cards have the same rank.
- When a player splits, they will create two separate hands, each starting with one of the original cards, and continue playing each hand independently.