Monte Carlo
Hole, board, and dead-card arguments use CardInput: string[] or packed Uint8Array (deck ids 0..51). See Card notation.
simulateHandOutcome— Estimated equity vs one or more random villain hands (defaultvillains = 1).simulateHandOutcomeAsync— Non-blocking MC equity (libuv thread pool); optionalAbortSignal.parallelHandSimulation— Same with C++ worker threads and distinct seeds per chunk.parallelHandSimulationAsync— Non-blocking parallel MC; optional cancellation.simulateHandOutcomeBatch— Many MC spots in one call →Float64Array.simulateHandOutcomeBatchPacked— Packed holes/boards/meta batch.exactHuEquityVsRandomHand— Exact HU equity vs uniform random villain hand; preflop or board 3–5 cards.simulateHandOutcomeDetailed— MC equity with SE and Wilson CI.simulateEquityVsRange— MC vs weighted villain range.exactHuEquityVsRandomHandAsync— Non-blocking exact HU equity; optional cancellation ·exactHuEquityVsRandomHandBatchstraightMadeFlopToRiverExactProbability— Exact probability of straight or better in hero’s best 7 after uniform random unordered turn+river from remaining deck.straightMadeFlopToRiverExactProbabilityAsync— Non-blocking exact probability; optional cancellation
Multi-way MC (villains > 1) awards 1 / tiedAtBest when hero ties for the best hand. See Numerical semantics.
See Batch equity.
| flushMadeFlopToRiverExactProbability | Exact flush+ by river enumeration. |
| flushMadeFlopToRiverExactProbabilityAsync | Async flush made; optional AbortSignal. |
| fullHouseMadeFlopToRiverExactProbability | Exact full house+ by river. |
| fullHouseMadeFlopToRiverExactProbabilityAsync | Async full house made. |
| tripsMadeFlopToRiverExactProbability | Exact trips+ by river. |
| tripsMadeFlopToRiverExactProbabilityAsync | Async trips made. |
| twoPairMadeFlopToRiverExactProbability | Exact two pair+ by river. |
| twoPairMadeFlopToRiverExactProbabilityAsync | Async two pair+ made. |