straightMadeFlopToRiverExactProbability
Exact probability of straight or better in hero’s best 7 after uniform random unordered turn+river from remaining deck.
straightMadeFlopToRiverExactProbability(heroHoleCards: CardInput, flopThree: CardInput, knownDead: CardInput): number
All three card lists use CardInput (string[] or packed Uint8Array). See Card notation.
Import
const poker = require('poker-calculations');
ESM (Node):
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const poker = require('poker-calculations');
When to use
Use when a pattern-based runner model is not enough and you need the exact flop→river chance that hero’s best seven-card hand is a straight or straight flush. Pass villain/blocker cards in knownDead so they are removed from the deck.
How to use
const poker = require('poker-calculations');
const pStraight = poker.straightMadeFlopToRiverExactProbability(
['9h', '8h'],
['7h', '6d', '2c'],
['Kh', '5s'],
);
console.log(pStraight);
flopThree must be length 3; knownDead may be empty.
See also
runnerRunnerStraightDrawHitProbability · flopToRiverAtLeastOneHitProbability