What’s a better way to get ready for a gambling trip other than write a blackjack simulator? I am no blackjack expert but one of the strategies I heard off is to double your bet every time you lose. So, if I start with a $100 bankroll and play $10 hands then I lost the first hand, I am down to $90 and now should bet $20. If I lose then I am down to $70 and should bet $40 and so on. If I win then I have $110 and should bet $10. That is the basic premise of my blackjack simulator.
Here is an output of the results after 40 hands for:
player 1 – http://pastey.net/139513
player 2 – http://pastey.net/139514
dealer – http://pastey.net/139515
Here is another run:
player 1 – http://pastey.net/139516
player 2 – http://pastey.net/139517
dealer – http://pastey.net/139518
you WILL EVENTUALLY LOSE. I ran the simulator for a long time and I was down over $90k.
You can get the source code for the application here – http://github.com/eibrahim/BlackJackSimulator