Welcome to the Python Blackjack game! This project is a simple implementation of the classic card game, Blackjack, using basic concepts of Python, including Object-Oriented Programming (OOP).
This project is a simple console-based Blackjack game written in Python. It is designed to help beginners understand and practice basic Python concepts, including classes and methods. The game allows a player to play against the dealer with simple betting mechanics.
- Simple text-based user interface
- Basic betting system with a starting balance
- Interactive gameplay with options to hit or stand
- Dealer AI with basic decision-making
- Hand value calculation, including handling for Aces
To get started, you need to have Python installed on your machine. You can download and install Python from python.org.
-
Clone the repository:
git clone https://github.com/AMRzip/BlackJack-in-Python.git
-
Navigate to the project directory:
cd BlackJack-in-Python
-
Run the game:
python card_Game.py
- Start the game by running the
card_Game.py
script. - Follow the on-screen instructions to place your bet and play the game.
- The game continues in a loop until you choose to quit or run out of balance.
- The game starts with a player and a dealer.
- Both the player and the dealer are dealt two cards each. The player's cards are both face up, while the dealer has one card face up and one face down.
- The player can choose to "Hit" (take another card) or "Stand" (stop taking cards).
- The goal is to have a hand value as close to 21 as possible without exceeding it.
- If the player's hand exceeds 21, they bust and lose the bet.
- The dealer must hit until their hand value is 17 or higher.
- The winner is determined by who has the hand value closest to 21 without exceeding it.
Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request.