Skip to main content

Module solver

Module solver 

Source
Expand description

Heads-up postflop NLHE: a multi-street betting tree and combo-vectorized CFR trainer. No side pots or multiway games.

Modules§

quality
Independent, exact strategy-quality reference for small heads-up trees.

Structs§

CardAbstraction
Which streets let hands of similar strength share one strategy (bucketing).
Chips
An exact chip amount, stored as a whole number of 1 / CHIP_SCALE chips.
Evaluation
SolverGame::evaluate’s result: per-node values under a policy.
Exploitability
How much a best response could gain against a policy, in chips.
GameConfig
Setup for betting starting from a given (partial or complete) board.
NodeEvaluation
Values at one decision node under a policy, per combo of the acting player.
Policy
A snapshot of the average strategy at every decision node.
SolverGame
Everything about a solve that training does not change.
Trainer
Trains a strategy for one game with counterfactual regret minimization.
TrainerOptions
How a Trainer learns: the update rule, the update order, and card abstraction.
Tree
A betting tree and the board it starts from.

Enums§

Action
A betting action at a decision node.
BoardError
Why a board was rejected.
Node
A node of the betting tree.
Player
A seat in the heads-up hand.
PolicyError
Why persisted policy rows do not fit a game (see SolverGame::policy_from_rows).
SolverAlgorithm
The regret and average-strategy update rule; independent of the game tree.
Terminal
How a hand ends, with the payoffs the solver uses.
TrainerError
Why Trainer::new rejected its inputs.
TreeError
Why a betting tree was not built.
UpdateSchedule
Player update order, independent of regret discounting and averaging.

Constants§

CHIP_SCALE
Internal units per input chip (amounts are quantized to 0.001 chips).

Functions§

build_tree
Builds the full betting tree for cfg.
build_tree_bounded
Builds the betting tree, stopping once it would exceed max_decision_nodes.