Single Player Black Jack (21)
This is a text based, very basic version of the popular card game Black Jack. The user can bet based upon their starting amount which can be modified by editing the variable "moneycount" and renaming all instances of it. Very basic, and very rudimentary but I likely will not be refining it any more as it suits my needs just fine.
Please feel free to modify and redistribute the code as you see fit! However, I ask that you simply credit me for the base version. Of course, if you make improvements to this system then I would love to see those changes. I hope this can be of use and entertainment to you, and your feedback is certainly welcome. Enjoy!
To install:
Open the .zip file with winrar and extract the blackjack folder into your main MatLab directory. In MatLab, make sure to select the folder, so that the .m files contained within are displayed. Then, in the command window, type "BlackJackStart" and hit enter, this will start the game.
Cite As
Cameron Travis (2026). Single Player Black Jack (21) (https://www.mathworks.com/matlabcentral/fileexchange/60048-single-player-black-jack-21), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
BlackJack/
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
