View Single Post
  #1  
Old 08-05-2005, 02:35 PM
VivaLaViking VivaLaViking is offline
Member
 
Join Date: Jul 2005
Posts: 97
Default Eureka! Probability of flopping a straight.

I believe I have succeeded in writting some reasonably concise code for calculating the probabilty of flopping a straight depending on the separation of the hole cards. Turn and river calculation will follow later. Can anyone post known probabilities to use as a benchmark? I have been wrong before and I don't trust myself. Afterall, I've got myself in more trouble than other people have got me into. I will explain the code to anyone interested.
[ QUOTE ]


// T -> A converted to 10 -> 14 except when A is low, then it's one.
// the LowCard and HiCard have been resolved.

Separation = HiCard - LowCard;
SolutionsAdjustForBounds = 0;
FlopStraightProbabilityRatio = 0;
if((Separation <= 4) && (Separation > 0)) { // If a straight is possible
. . . if(LowCard < 5) SolutionsAdjustForBounds = LowCard;
. . . else if(HiCard > 10) SolutionsAdjustForBounds = 15 - HiCard;
. . . else SolutionsAdjustForBounds = 5 - Separation;

. . . MaxSolutions = 5 - Separation;
. . . Solutions = (MaxSolutions - SolutionsAdjustForBounds) > 0? MaxSolutions -
. . . . . .(MaxSolutions - SolutionsAdjustForBounds): MaxSolutions;
. . . Permeations = Solutions * 384;
. . . FlopStraightProbabilityRatio = Permeations / 19600 (50 C 3);
}




[/ QUOTE ]
Reply With Quote