Simulate Blackjack games using strategy tables

How does this Blackjack calculator work in a real environment? In order to test this, one must simulate many thousand games. On the long term, the players average capital should slightly increase. The big unknown is volatility. Since the player has to bet with high stakes, the risk of going bankrupt should not be neglected.

The aim of this simulation is to show how the Blackjack dealer can be beaten on the long term, using the correct mathematical methods.

The meaning of other gamblers sitting at the table is to make the simulation more realistic. These dummy gamblers buy until their score is 17 or higher. They neither double nor split and their sole purpose is to act as placeholders.

%

Round {$ game.num_game $}, total expectation: {$ game.total_expectation $}%, players stake: {$ game.stake $}, shoe filling: {$ game.shoe_filling_percentage $} %

Dealer:
final score: {$ game.dealer.score $}
Gambler at box {$ gambler.box_number $}
Player at box {$ result.player_box_number $}
doubled, final score: {$ row.score $}, {$ row.gain $}
Gambler at box {$ gambler.box_number $}