Blackjack AI Engine
Decision engine applying optimal strategy and expected value reasoning to Blackjack
What it is
A decision-making engine for Blackjack that evaluates game states and produces optimal actions based on probability theory and expected value analysis. The project explores how rule-based AI and mathematical reasoning can be applied to structured games — turning well-defined strategy into executable logic.
What I built
Implemented a game state evaluator that tracks cards, hand values, and dealer information. Developed decision logic based on standard Blackjack optimal strategy, extended with expected value calculations to handle edge cases. The engine can simulate game scenarios and evaluate the quality of decisions across sequences of hands.
Key features
- Game state representation and tracking
- Optimal strategy implementation for standard Blackjack rules
- Expected value computation for action selection
- Simulation loop for evaluating strategy performance
What I learned
This project was an exercise in translating mathematical rules into a working software system. It strengthened my understanding of probability, decision trees, and how to structure AI logic cleanly. It also reinforced a broader lesson: intelligent behavior in a well-defined domain is largely a function of how rigorously you model the problem.