Article Preview
Buy Now
FEATURE
Simulating Blackjack
How to lose your (virtual) shirt in Vegas
Issue: 11.4 (July/August 2013)
Author: Jens Bendig
Author Bio: When he was young, Jens Bendig was fascinated by three things
Article Description: No description available.
Article Length (in bytes): 34,532
Starting Page Number: 22
Article Number: 11405
Resource File(s):
11405 project.zip Updated: 2013-07-05 00:22:39
Related Web Link(s):
http://en.wikipedia.org/wiki/Blackjack
http://wizardofodds.com/games/blackjack/strategy/4-decks/
http://wizardofodds.com/games/blackjack
Excerpt of article text...
I could tell you how to lose money in Las Vegas—this article might be more amusing. But I'll leave out the gory details of my two-week Vegas trip that left me $1,000 poorer and instead focus on the blackjack simulator I've written that will help me test out techniques before my next trip to Vegas.
First, I don't recommend anyone play blackjack in a casino, nor do I warn against it. It's the same as with alcohol, motorcycle-riding, or eating sweets. These things can become dangerous, depending on who you are, but they can be fun if you stay in control.
However, if you are not interested at all in this game, you may not want to read further (though we will also discuss the programming technique of using Listeners/Observers).
If you do play blackjack, it might be a good idea to find out about all the little myths or rumors floating about. Techniques like increasing the third bet when losing, always bet flat, leave the table after losing three times in a row, and so on. Curious if these are really true?
To make it easier to do your own research on these questions—without an expensive trip to Vegas—I have prepared a blackjack simulator (see Figure 1). It simulates the game as it is played in Las Vegas. You can implement your own betting strategy, card-counting strategy, or just let it run for fun. The simulator includes the model of the shoe, the dealer, and the gambler. The gambler makes decisions via a decision table, following a basic strategy. I will explain this in more detail in a moment.
...End of Excerpt. Please purchase the magazine to read the full article.