Single Player Black Jack (21)

Plays single deck black jack, also known as 21.
1.2K Downloads
Updated 1 Nov 2016

View License

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
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Card games in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0