exactHeroRunoutVulnerability
Exact p(nuts) and p(dominated) over all turn/river runouts from a flop or turn board — no Monte Carlo sampling.
exactHeroRunoutVulnerability(heroHoleCards: CardInput, boardCards: CardInput, knownDead?: CardInput): HeroRunoutVulnerabilityResult
See Packed card input.
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
You need exact runout frequencies for nuts (hero ties or beats every villain line) vs dominated on a draw-heavy flop or turn — for study, reporting, or bot heuristics.
How to use
const poker = require('poker-calculations');
const { pNuts, pDominated, runoutCount } = poker.exactHeroRunoutVulnerability(
['Ah', 'Kh'],
['Qh', 'Jh', '2c'],
);
console.log({ pNuts, pDominated, runoutCount });
boardCards must have 3 or 4 cards (flop or turn). Optional knownDead removes extra cards from the deck.
Return type
HeroRunoutVulnerabilityResult.
See also
exactHeroEquityRunoutQuantiles · exactVillainLeapfrogOutCounts · Tournament, runouts, and bots