This project simulates a full-featured game of Blackjack using Python, including dealer logic, player handling, betting mechanics, and a smart bot that follows a basic strategy. The bot can play multiple rounds, track its purse, apply dynamic betting strategies, and make decisions using a well-defined basic strategy map.
- Full Blackjack game simulation:
- Dealer logic (hit/stand rules, blackjack checks)
- Multi-deck shoe (6 decks)
- Splitting, doubling down, hitting, standing
- Player mechanics:
- Purse and betting system
- Auto-split and double with available funds
- Busted, payout, and blackjack handling
- Blackjack Bot:
- Implements Basic Strategy for hard hands, soft hands, and pairs
- Adaptive betting based on win/loss streaks (Martingale-style)
- Tracks performance over multiple rounds
- Console progress bar and result summary
- Clean object-oriented structure (e.g.
Player,Dealer,Hand,Shoe,BlackJackGame,BlackJackBot)
.
βββ blackJack.py # Contains all game logic (Decks, Dealer, Players, Game Engine)
βββ bot.py # Blackjack bot logic & strategy implementation
βββ README.md # You're reading it