This is a simple implementation of a Blackjack game in Python.
This Python script allows you to play a game of Blackjack against the computer (dealer). It follows the standard rules of Blackjack, where the goal is to get a hand value as close to 21 as possible without exceeding it. You can place bets, draw cards, and compete against the dealer to win virtual money.
- Run the script
blackjack.py
. - Enter your bet amount. You start with $2500.
- Follow the prompts to draw additional cards (if desired).
- The dealer will draw cards until their hand value is 17 or higher.
- The winner is determined based on the hand values. If you win, your bet amount is doubled and added to your total money.
- Betting System: Place bets with a maximum limit of $2500.
- Ace Adjustment: Automatically adjusts the value of an Ace card based on the player's hand to prevent busting.
- Result Calculation: Determines the winner based on the hand values.
- Money Management: Tracks your total money throughout the game.
- Simple Interface: Easy-to-understand prompts and messages.
- Python 3.x
- Clone this repository to your local machine.
git clone https://github.com/yourusername/blackjack.git
- Navigate to the project directory.
cd blackjack
- Run the script.
python blackjack.py
- Pop Robert (https://github.com/poprobert0412)