title: Calculating 5 card draw outs in Texas Hold'em Poker
body: <p>I am currently making a simulation about poker in python and I am stucked at calculating outs at post-flop, turn</p>
  
  <p>I want to learn how to calculate the outs when flop is drawn.
  In other way I want to learn how to make my simulation recognize that I need one card to have straight. If the missing card is in the middle, my outs would be 4. If it is at the beginning or end of the straight my outs would be 8.</p>
  
  <p>For Example:</p>
  
  <p>I have in my pocket(hands) 5-Spades and 6-Diamond</p>
  
  <p>The flop is: 9-Clubs , 8-Hearts , K-Hearts</p>
  
  <p>So my 5-Card hand is like: 5s - 6d - 8h - 9c - Kh</p>
  
  <p>In Poker this draw is a gutshot straight draw. If I draw any kind of 7 in turn or river, I will have straight draw. Since there are 4 7s in a deck, my outs are 4 to have the Straight.</p>
  
  <p>This is only one and basic example about outs.</p>
  
  <p>If anyone can guide me, I will be pleased.</p>
  
  <p>Kind Regards</p>