Blackjack Trainer

A 5-person class project. I wrote the basic-strategy and card-counting validation, which checks every decision against strategy tables and gives instant feedback. I also designed the core game engine as a Qt state machine and built the main interface.
C++QtQt WidgetsGit
What I built
- Strategy and counting validation: the basic-strategy engine, with hard-total, soft-total, and pair-splitting tables for both H17 and S17 rules, gives real-time feedback when a player deviates from optimal play. It also checks Hi-Lo card counting for counting practice. This logic was almost entirely my work.
- Game engine (~500 lines of C++): I architected the core engine as a QObject-based state machine for the round flow (deal, hit, stand, double, split, surrender), using signals and slots to keep game logic separate from the UI.
- Main interface (~800 lines): the primary Qt Widgets UI, with animated card dealing and chip-based betting.
The team of five collaborated through Git over the semester.