B
👥 Group Project
Blackjack AI
PythonOOPpandasmatplotlib
Overview
A full Python OOP implementation of the card game Blackjack, featuring an AI player that makes hit/stand decisions based on probability calculations. The project includes a simulation mode that runs thousands of games to collect win rate statistics and evaluate strategy performance over time. Matplotlib is used to generate visualizations comparing AI vs. baseline strategies across long runs.
My Contributions
- Designed the full OOP class hierarchy including Card, Deck, Hand, Player, AIPlayer, and Game classes
- Implemented probability-based AI decision logic using expected value and bust probability calculations
- Built a simulation mode capable of running thousands of automated games for statistical analysis
- Created matplotlib visualizations to track and compare win rates across different strategies
- Managed project structure, code review, and Git workflow for the group
Tech Breakdown
Python 3, Object-Oriented Programming (OOP), pandas for data aggregation, matplotlib for win-rate and strategy visualizations, probability theory and expected value calculations