Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > General Gambling > Probability
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:03 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.