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.

Strategy

Rule-based bots, PKST state encoding, diagnostics, and batch policy helpers. State may be NativePokerState or PKST Uint8Array. See the decideAction guide.

ExportSummary
decideActionRule-based action from MC equity, pot odds, and call EV.
decideActionAsyncNon-blocking decideAction; optional AbortSignal.
decideActionWithDiagnosticsSame decision plus legal-action and EV diagnostics.
actionEvBreakdownFold, check, call, and raise EV diagnostics for a state.
explainDecisionFactorsRanked decision factors for a native policy decision.
legalActionSummaryLegal action flags and raise bounds for a poker state.
candidateActionSetLegal candidate actions and raise sizes for a state.
actionMaskFromStateCompact legal-action bitmask from a poker state.
validatePokerStateValidate a native poker state and return structured errors.
normalizeBotConfigFill and clamp bot configuration fields to native defaults.
runBotPolicyBatchRun native policy diagnostics over many states.
stateToFeatureVectorConvert a poker state into a compact numeric feature vector.
encodePokerStatePKST binary snapshot from a live state object.
decodePokerStateReconstruct a state object from PKST bytes.