flushMadeFlopToRiverExactProbability
Exact flush+ by river enumeration.
Card lists use CardInput (string[] or packed Uint8Array). See Card notation.
flushMadeFlopToRiverExactProbability(heroHoleCards: CardInput, flopThree: CardInput, knownDead: CardInput): 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
Exact probability hero makes flush or better by the river via uniform turn+river enumeration.
How to use
const hole = ['Ah', 'Kh'];
const flop = ['2h', '7d', '9c'];
const dead = ['Qh'];
const pFlush = poker.flushMadeFlopToRiverExactProbability(hole, flop, dead);
console.log(pFlush);
See also
straight-made-flop-to-river-exact-probability · exact-hero-category-joint-flop-to-river