I'm writing an odds calculator for Texas hold'em (assuming all players remain till showdown) and I'm unsure about how I should be tallying scores when taking into consideration ties.
Basically, if I am running the simulation for a thousand iterations I can increment a score counter by 1 for wins and leave it unchanged for losses. At the end of the simulation I would simply divide that number by the total number of simulations run.
However, I'm unsure on how to treat ties. My approach to this at the moment is to decrement the total number of simulations when a tie occurs (that is, stopping the simulation earlier at 999 iterations instead of 1000 simulations thus nullifying the round).
I also take into consideration that the tie might not be against all players. So if there are 3 opponents at showdown and my hand beats 2 and ties with 1, then the total number of simulations is not decremented by 1, which would be the case if there was an all around tie, but by 1/3.