Code covered by the BSD License  

Highlights from
Blackjack

Be the first to rate this file! 7 Downloads (last 30 days) File Size: 22.4 KB File ID: #18688

Blackjack

by Michael Iori

 

10 Feb 2008 (Updated 11 Feb 2008)

Fully functional blackjack simulator

| Watch this File

File Information
Description

This is a fully functional blackjack simulator with several user modifiable options (i.e. number of decks in use, game speed, initial bankroll, etc). The simulator will suggest the player's appropriate course of action for each decision based on the card count.

I wrote this to be able to determine the long term ramifications of proper blackjack play. So, there's an autoplay option that will play each hand ideally. Also, the bet size can be automated to increase as the odds move in the player's favor. At the game's end, the results of the session are plotted.

Known limitations:
The player can only split once
The game tends to slow down as the number of hands played goes up.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
cardplot.m

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
09 Jun 2009 Kevin Holst

Good first release, I have a couple of suggestions:

-if you try to put the game speed above 100% it crashes, maybe limit it to 100%

-I'd love to see an option for strictly simulations that bypasses the table gui all together and just goes straight to the plots. I'm sure this would speed up the running quite a bit.

Kudos on including the count and betting strategy! That's what i've been looking for!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
games Michael Iori 22 Oct 2008 09:47:16
casino games Michael Iori 22 Oct 2008 09:47:16
blackjack Michael Iori 22 Oct 2008 09:47:16
simulator Michael Iori 22 Oct 2008 09:47:16
modifiable options Michael Iori 22 Oct 2008 09:47:16
black Michael Iori 22 Oct 2008 09:47:16

Contact us at files@mathworks.com