A simple implementation of a command-line Blackjack (21) game in Python.
This Python program allows you to play Blackjack against a dealer. You can customize the number of players, including both human and bot players, and the number of decks used in the game.
- Play Blackjack against a computer dealer.
- Configure the game with options for automatic play, the number of human players, and the number of bot players.
- Customize the number of decks used in the game.
- Simple command-line interface.
-
Clone the repository:
git clone https://github.com/Marlup/blackjack-game.git
-
Change to the project directory:
cd blackjack-game
-
Run the game:
python blackjack.py
-
Follow the on-screen instructions to play the game.
Follow the on-screen instructions to play the game.
There are no specific installation requirements for this program other than having Python 3 installed on your system.
- The game follows standard Blackjack rules.
- The dealer must stand on 17 or higher.
- You can choose to stand or continue drawing cards to reach a score as close to 21 as possible without going over.
- Aces can count as 1 or 10, depending on which value benefits the player more.
- The player with a score closest to 21 without exceeding it wins.
If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature: git checkout -b feature-name.
- Make your changes and commit them: git commit -m 'Add some feature'.
- Push to your branch: git push origin feature-name.
- Create a pull request.
- Add comments to functions and important logic
- Refactoring
- Simplify if possible
- Check readabilit
This project is licensed under the MIT License - see the LICENSE file for details.