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§
- Card
Abstraction - Which streets let hands of similar strength share one strategy (bucketing).
- Chips
- An exact chip amount, stored as a whole number of
1 / CHIP_SCALEchips. - Evaluation
SolverGame::evaluate’s result: per-node values under a policy.- Exploitability
- How much a best response could gain against a policy, in chips.
- Game
Config - Setup for betting starting from a given (partial or complete) board.
- Node
Evaluation - 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.
- Solver
Game - Everything about a solve that training does not change.
- Trainer
- Trains a strategy for one game with counterfactual regret minimization.
- Trainer
Options - How a
Trainerlearns: 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.
- Board
Error - Why a board was rejected.
- Node
- A node of the betting tree.
- Player
- A seat in the heads-up hand.
- Policy
Error - Why persisted policy rows do not fit a game (see
SolverGame::policy_from_rows). - Solver
Algorithm - The regret and average-strategy update rule; independent of the game tree.
- Terminal
- How a hand ends, with the payoffs the solver uses.
- Trainer
Error - Why
Trainer::newrejected its inputs. - Tree
Error - Why a betting tree was not built.
- Update
Schedule - 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.