Interactive blackjack basic strategy calculator for any rule combination.
Basic strategy is the mathematically optimal way to play every hand in blackjack. By calculating the expected value of each possible action (hit, stand, double, split), we can determine the play that minimizes the house edge.
This tool computes basic strategy for any combination of casino rules, so you can find the correct play whether you're in Las Vegas, Atlantic City, or playing online.
The strategy is computed using Expected Value (EV) analysis:
- For each possible action (stand, hit, double, split), calculate the expected return
- Account for all possible cards that could be drawn
- Consider dealer's probability of busting or making each hand
- Choose the action with the highest expected value
The calculations use composition-dependent probabilities, adjusting for cards already seen (your hand + dealer's upcard). This matches how basic strategy charts are computed for real casino conditions.
House edge is verified using Monte Carlo simulation running on GPU with CUDA.
# Install dependencies
uv sync
# Generate strategy JSON files
uv run python -m scripts.generate_strategies
# Start web dev server
cd web && npm install && npm run devMIT