I'm making an AI for blackjack and currently I'm keeping track of all the card that have been played and I calculate the probability of the AI for busting with it's current hand.
Right now I'm trying to figure out how to calculate the probability of the dealer busting or beating my AI. In the Blackjack game the dealer has 1 face up card and 1 face down card. Statistics isn't really my strong suit, but i want to calculate the chance that the "wild card" would beat my AI. Can anyone suggest a equation for this?
https://github.com/onetrueallen/blackjackai/blob/master/src/CountCards.java
I think something like this might work: