Calculate odds texas holdem

broken image
broken image
broken image

I started some Pseudo code for the odds, but then realized it is more involved. Here's the VB code to carry out this bit: Loop through each combination of cards for an opponentĬalculate the best hand from the 7 cards avaliable to the opponentĬompare the opponents hand with the players handĪdd one to either the win count, the lose count, or the split countĬhance of winning = win count / total count Here is the basic outline of what i have at the moment (this is executed at the stage when all 5 community cards are face up)Ĭalculate the best hand for the player from the 7 cards avaliable I have looked at alternatives such as calculating the chance using the number of 'outs' but that only really gives an approximate chance. I have been trying to make a chance calculator that gives the exact chance of winning, losing, and splitting the pot for any hand, however as there are so many combinations it takes a very long time to do it. I am trying to make a poker game where you can play against the computer, however for the computer player to be any good it needs to know the chance of winning from its current hand (this is texas holdem poker so you know).

broken image