The winning probability is simply = (number of times winning after post river)/10,000 Finally, we repeat this whole process again for 10,000 times. We then check if the hero is the winner and keep track how many times has the hero won using the fixed hands.
Next, we would deal all the shared cards randomly up to the river. Then, in N players game, our simulation deal random cards for the (N - 1) other players game. The hero's hand is fixed to be the hand of interest. We define the 'fixed-preflop, post-river' winning chance as follows.