OK, i'm thinking about making a little tool for myself to analyse a few hands. I do realize that there are already packages to do this, but I want to learn to do it for myself as a little project.
My program is really to change hand histories a little, it will read in a file, change some of the values, add in the % chance to win in an all in situation, then print it out to a new text file.
So... How on earth to these programs work out how many "outs" a player has, surely the maths behind this is horrendous! Is there an easy way to do this, or even a start?
I thought about it for a while and thought about the number of cards which will improve a hand, but the problem is, it has to also take into consideration the chance of the other hand improving.
If for example, there are two hands...
Would it be possible to work out the % chance of each of the hands ending up on:
Royal flush
Straight flush
4 of a kind,... and so on, and so we have two comparable lists of possibilities for each hand, and then compare these values to find a percentage chance of one winning?
If I had all of them percentages, how would you go about working out the chance to win?
Anyway, if someone could just give me a pointer or a tip, it would be greatly appreciated!
Thanks
My program is really to change hand histories a little, it will read in a file, change some of the values, add in the % chance to win in an all in situation, then print it out to a new text file.
So... How on earth to these programs work out how many "outs" a player has, surely the maths behind this is horrendous! Is there an easy way to do this, or even a start?
I thought about it for a while and thought about the number of cards which will improve a hand, but the problem is, it has to also take into consideration the chance of the other hand improving.
If for example, there are two hands...
Would it be possible to work out the % chance of each of the hands ending up on:
Royal flush
Straight flush
4 of a kind,... and so on, and so we have two comparable lists of possibilities for each hand, and then compare these values to find a percentage chance of one winning?
If I had all of them percentages, how would you go about working out the chance to win?
Anyway, if someone could just give me a pointer or a tip, it would be greatly appreciated!
Thanks