Strategy
Rule-based bots, PKST state encoding, diagnostics, and batch policy helpers. State may be NativePokerState or PKST Uint8Array. See the decideAction guide.
| Export | Summary |
|---|---|
decideAction | Rule-based action from MC equity, pot odds, and call EV. |
decideActionAsync | Non-blocking decideAction; optional AbortSignal. |
decideActionWithDiagnostics | Same decision plus legal-action and EV diagnostics. |
actionEvBreakdown | Fold, check, call, and raise EV diagnostics for a state. |
explainDecisionFactors | Ranked decision factors for a native policy decision. |
legalActionSummary | Legal action flags and raise bounds for a poker state. |
candidateActionSet | Legal candidate actions and raise sizes for a state. |
actionMaskFromState | Compact legal-action bitmask from a poker state. |
validatePokerState | Validate a native poker state and return structured errors. |
normalizeBotConfig | Fill and clamp bot configuration fields to native defaults. |
runBotPolicyBatch | Run native policy diagnostics over many states. |
stateToFeatureVector | Convert a poker state into a compact numeric feature vector. |
encodePokerState | PKST binary snapshot from a live state object. |
decodePokerState | Reconstruct a state object from PKST bytes. |