Code covered by the BSD License  

Highlights from


4.8 | 5 ratings Rate this file 84 Downloads (last 30 days) File Size: 6.3 KB File ID: #4404
image thumbnail




23 Jan 2004 (Updated )

Play individual hands of the card game, or simulate a session.

| Watch this File

File Information

Blackjack is now also descibed in a Cleve's Corner article in MathWorks News and Notes, .

One of the less mathematical programs from an electronic textbook, "Numerical Computing with MATLAB®", by Cleve Moler. The book, and more programs, are available from A hardcopy edition of the book is available from SIAM.


This file inspired Blackjack Computational Kernel.

MATLAB release MATLAB 7.14 (R2012a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
16 Jan 2014 Chris Clayton

I've been writing my own. This is truly great. Better than I would've done! Great job!

25 Feb 2013 stamatis

Can you help us with the code?
One demo m-file would be very usefil.
Thank you

11 Feb 2008 Mike Iori

Options are a bit limited (i.e. Can't vary bet size), but otherwise it's a very good simulation.

12 Oct 2007 Kevin Holst

well made, i really enjoy the simulation. personally i'd love to see the option for various card counting strategies to see how they stack up.

13 Nov 2004 Ramón D. Díaz

Great Program. With a couple of tweaks I will use it to calculate the specific advantage using modified basic strategy under the rules of my particular casino.

Thank You for writing this. You saved me a lot of work... and probably money too ;)

Let me know if you are interested in the couple of tweaks I'll be working on...

02 Sep 2004 dfdggg retddg  
04 Oct 2012

Rewrite of program to improve handling of callbacks.

Contact us