This project is a Python implementation of the classic Blackjack card game. The code is organized into modules handling cards, game logic, player actions, and utilities, making it easy to maintain and improve.
This project started as a personal hobby to challenge myself and improve my Python skills.
- Well-structured modular design for scalability and clarity
- Object-oriented representation of cards, decks, and game state
- Basic betting system with chip management and buy-in functionality
- Dealer follows standard Blackjack rules with automated play
- Interactive console interface with color-coded output and input validation
- No external dependencies; runs on Python 3 standard libraries
Ensure Python 3 is installed on your system. Then execute the following command in your terminal:
python3 main.py
The game operates entirely within the console environment. For the best experience with the colorful output, it’s recommended to run this game in VS Code, PyCharm, or another terminal/IDE that supports ANSI colors.
Potential improvements include:
- Support for splitting pairs and insurance bets
- Graphical user interface for enhanced user experience
- Player statistics tracking and performance metrics
Feel free to explore the codebase and experiment with the game.