Skip to content

Console-based Python implementation of the classic Blackjack game with betting, player actions, and automatic dealer play. No dependencies required.

Notifications You must be signed in to change notification settings

mniabedii/blackjack-python

Repository files navigation

Blackjack Python Game

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.

Features

  • 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

Running the Game

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.

Future Enhancements

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.

About

Console-based Python implementation of the classic Blackjack game with betting, player actions, and automatic dealer play. No dependencies required.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages