HeroRunoutVulnerabilityResult
Returned by exactHeroRunoutVulnerability and exactHeroRunoutVulnerabilityAsync.
| Field | Type | Meaning |
|---|---|---|
pNuts | number | Fraction of runouts where hero ties or beats every villain line |
pDominated | number | Fraction where some villain beats hero |
runoutCount | number | Number of enumerated turn/river completions |
Semantics
Board must have 3 or 4 cards (flop or turn). All uniform turn+river (or river-only) completions are enumerated. On each runout, hero’s best five is compared to the best possible villain hand on that board. pNuts and pDominated divide by runoutCount. Optional knownDead removes extra cards from the deck.
The async export returns the same shape; pass AsyncOptions to cancel long enumerations.
Example
const poker = require('poker-calculations');
const { pNuts, pDominated, runoutCount } = poker.exactHeroRunoutVulnerability(
['Ah', 'Kh'],
['Qh', 'Jh', '2c'],
);
console.log({ pNuts, pDominated, runoutCount });