The Blackjack Simulation
Andre Ruegg
Intro

History

Gaining the advantage in Blackjack had first began to become popularized by Roger Baldwin’s paper, The Optimum Strategy in Blackjack. In his paper, Roger Baldwin analyzes the player’s options discussed earlier in an attempt to find which choice is favorable for which hands played. Later Edward Thorp, an American mathematics professor, had become interested in The Optimum Strategy and had programmed the same methodology into an IBM 704 in Fortran. He used the computer to find every possible action for every possible hand and used this data to create a new strategy called Basic Strategy. By using Basic Strategy, a player could gain a .09 percent advantage in blackjack. Thorp released this strategy in his book, Beat the Dealer, which had a large effect on blackjack. When Beat the Dealer was published, gamblers stormed the casinos prepared to win, while other researchers and mathematicians created new counting systems off of Thorps data. Thankfully for the casinos, the average gambler was not capable of perfecting the system with counting and most had still lost.


Mission

The goal of The Blackjack Simulation is to refine the current system used today in Blackjack card-counting. This is done through an open-source program that is capable of dealing and simulating millions of hands in order to create a strategy chart similar to the one used today.

Simulation

Below is an online Blackjack simulator created for demonstration purposes to show the difference between Basic Strategy(left), and the strategy the program has produced(right).

NOTE: The simulator created below is only a ported web version of the program itself and is not capable of running at the project's speed.

Basic Strategy

Strategy:

Hands played:

Win Percentage:

Project Strategy

Strategy:

Hands played:

Win Percentage:

The Program

The Blackjack Simulation program is written Java. The logic used is as follows:

Allow H to represent an array of card types:

Ace2345678910JackQueenKing

Allow C to represent an array of possible hand combinations for the player:


Blackjack provides three options(excluding surrender) for any hand: stand, hit, or double. Hands that are pairs also have the option to split.

For all combinations of HC, test each combination's possible hand options equally and record the win/loss ratio for each option.

Each HC combination now has multiple win percentages respective to its possible options. The option with the highest win percentage wins and is displayed graphically.

Open-source

The Blackjack Simulation is open-souce and available on Github.