Skip to content

A simple python recreation of the game Blackjack as well as a automated bot attempting to gain the system

Notifications You must be signed in to change notification settings

jonmenard/blackjack-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸƒ Blackjack Simulator & Strategy Bot

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.

πŸš€ Features

  • 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)

πŸ“ File Structure

.
β”œβ”€β”€ blackJack.py              # Contains all game logic (Decks, Dealer, Players, Game Engine)
β”œβ”€β”€ bot.py                    # Blackjack bot logic & strategy implementation
β”œβ”€β”€ README.md                 # You're reading it

About

A simple python recreation of the game Blackjack as well as a automated bot attempting to gain the system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages