twoPairMadeFlopToRiverExactProbabilityAsync
Async two pair+ made.
Card lists use CardInput (string[] or packed Uint8Array). See Card notation.
Optional trailing { signal?: AbortSignal } via AsyncOptions.
twoPairMadeFlopToRiverExactProbabilityAsync(heroHoleCards: CardInput, flopThree: CardInput, knownDead: CardInput, options?: AsyncOptions): Promise<number>
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
Async two-pair-made enumeration.
How to use
const hole = ['Ah', 'Kd'];
const flop = ['Ac', '7d', '9c'];
const p = await poker.twoPairMadeFlopToRiverExactProbabilityAsync(hole, flop, []);
console.log(p);
See also
two-pair-made-flop-to-river-exact-probability · AsyncOptions