Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

TypeScript types

Shapes exported from poker-calculations for decideAction, Monte Carlo batches, ICM vectors, and hand evaluation. Import types with:

import type { CardInput, NativePokerState } from 'poker-calculations';

Result and state objects

TypeDoc
NativePokerStateTable snapshot for decideAction
NativeBotConfigBot tuning
NativeOpponentModelOptional villain model
DecisionResultdecideAction output
HandEvalResultFull evaluateBestHand result
HandEvalResultSlimSlim evaluateBestHand result
EvaluatorBenchmarkResultEvaluator benchmark
McEquityDetailedResultDetailed MC + CI
WilsonScoreIntervalInterval bounds
BetaBinomialFoldPosteriorFold-rate posterior
SidePotLayerSide-pot layer

ICM and tournament

TypeDoc
IcmShapleyValuesOptionsOptions for icmShapleyValues
IcmShapleyValuesResultShapley fair-share $EV
IcmFieldPressureIndexResultField-wide bubble pressure
IcmChopParetoPairDirected surplus transfer edge
IcmChopNegotiationAnalysisResultChip chop vs ICM surplus
TournamentDuelAbsorptionResultHU absorption time and prize EV
SidePotLayerTournamentEvRowPer-layer chip and ICM EV

Exact runouts and subgame

TypeDoc
MaterializedVillainRangeResultDense 1326 weights after blockers
HeroRunoutVulnerabilityResultP(nuts), P(dominated) over runouts
VillainLeapfrogOutCountsResultLeapfrog and hero-improve deck indices
HeroEquityRunoutQuantilesResultRunout equity distribution
CardRemovalGradientResult52-vector equity sensitivity
RiverIndifferenceBetResultPolarized river indifference bet
StageMinimaxRegretBetResultMinimax regret over bet grid
PushFoldThresholdResultSymmetric push/fold threshold
MultiwayIndependenceGapResultMultiway vs independence gap

Options and batch specs

TypeDoc
AsyncOptionsAbortSignal on *Async exports
SimBatchSpecsimulateHandOutcomeBatch rows
SparseRangeSpecSparse villain range
PreflopMatrixOptionsbuildPreflopEquityMatrix

Aliases (concepts)

TypeWhere documented
CardInputPacked card input
Card52Card notation
F64VectorInputFloat64 ICM input
F64ReturnFormatFloat64 ICM input
PokerStateBytesPacked poker state
EvaluateBestHandOptionsevaluateBestHand
ParseCompactCardListOptionsparseCompactCardList
CompareBestHandsOptionscompareBestHands

Range, texture, and diagnostics

TypeDoc
RangeComboWeightCombo index, cards, notation, and weight in range listings
RangeNotationWeightNotation label and weight in bucket builders
RangeClassWeightsPreflop class bucket masses (pairs, broadways, connectors, …)
BoardTextureResultPairedness, wetness, staticness, and related board scores
CardScoreDeck index, card string, and score for ranked card lists
EquityDistributionResultMean, variance, and p05/p50/p95 equity quantiles
RangeCoverageResultMade-hand, draw, overcard, and air shares on a board
EvGridRowOne bet-size row in a sizing EV grid
EvGridResultFull sizing grid with best bet and best EV
OpponentBiasResultShowdown frequency and bias estimates
LegalActionSummaryResultLegal flags and raise bounds for a state
PokerStateValidationResultvalid flag and structured error strings
ActionEvBreakdownResultFold/check/call/raise EV and equity
DecisionDiagnosticResultDecision plus legality, EV, and reason
DecisionFactorNamed weighted factor behind a policy choice
CandidateActionOne legal or candidate action with raise amount