Code covered by the BSD License
-
BJCreateBoard(AllVisible)
Creates the Blackjack Playing Board
-
BJInitValues
Creates a GUI that allows the player to determine the initial values to be
-
BJActionSelect(Action)
This function is called when the Hit, Stand and Double boxes are pressed
-
BJBetSuggest(handles)
This function uses the True Count and number of decks in use to determine
-
BJDealCard(recipient,facedown...
This function will deal a card to the dealer
-
BJDealerHits(handles)
Deal Card
-
BJDetermineWinner
Determines the winner of the blackjack hand
-
BJPlayerHits(handles)
Performs the required actions when a player decides to hit, on the hand
-
BJSetTrueCntColor(handles)
Sets the color of the True Count string that is output to the screen based
-
BJSuggest(UseCount, varargin)
This function uses the Player, Dealer, BJOdds and Cards structures to determine
-
BJUpdateHiLoCount(handles,Car...
Updates the Hi-Lo count, where CardSpot is the location of the card in the
-
HandsLeft(handles)
function for updating the value of Bankroll.HandsLeft when the
-
QuitGame
-
ShuffleCards(NumDecks)
This function takes the number of decks needed as an input, and outputs a
-
[oarg,varargout]=cardplot(var...
CARDPLOT Plot playing cards for card games.
-
Blackjack.m
-
View all files
|
|
| 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.
|
|
Contact us at files@mathworks.com