BlackJack GUI

Version 1.0.0 (4.84 MB) by David Hill
Play BlackJack and check your card-counting skills. Learn how to take the best probable actions during the game.
Updated 26 Apr 2019

View License

I developed this game for my AP Computer Science Principles create project. Various balanced card-counting methods are available to select and are updated throughout the play so that the player can check his card-counting skills. The game calculates exact win probabilities and win odds during play so that the player can see how their counting system correlates with the most probable action to take. A suggested bet amount is provided based on the current counting system being used. This game allows for a mandatory dealer hit on a soft seventeen or not, allows the selection of multiple decks, selection of initial player bankroll, and the selection of minimum and maximum bets allowed. The game allows doubling only on a combined player hand holding nine, ten, or eleven and then only allows a single hit following the double. The game allows only a single split and aces that are split are only allowed a single additional card. The games allows insurance bets for 1/2 the current bet amount that pay 2:1 when the dealer shows an ace. Player blackjacks pay 1.5:1. The player can move back and forth from displaying win probabilities and win odds using the 'P/O' button. Hope you have fun playing.

Cite As

David Hill (2024). BlackJack GUI (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Just for fun in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes