Hi everyone!
I'm currently developing a piece of software to help me study poker. I'm about to start a function that calculates hand vs hand equity, but I have a major design concern, as I don't really know how to approach this. I'll give you an example:
I want to check for instance KTo vs A9o. Theoretically all I have to do is to run all possible flops with these two pairs and count the number of wins, losses and splits. However, things are not that simple: This test:
K
10
vs
A
9
Will not yield the same numbers as:
K
10
vs
A
9
And there are many different suits choices that yield different numbers. As this function will be the basis for other functions (like range vs range for instance), I really don't know how to proceed.
And the problem arises too when doing suited vs offsuit hand. Or suited vs suited.
How should I proceed? How do other software applications deal with it?