Blackjack dealer simulator

broken image
broken image

In the first one I looked for the probabilities for each possible event (that’s to say: “player wins”, “tie”, “dealer wins”). The code looks like messy, I know, If I had to do it now, I guess I would do many things differently, however, the results looks fine, and the code runs fine as well, therefore it is not entirely to be thrown away I believe. I have just decided to call it plain vanilla since neither double down or split pairs are allowed. Here is a simulation I run with R in the same period I created the poker one. Please before continue reading, make sure to read the disclaimer at the bottom of this article.

broken image