How wazwaztime/aksolver works
AKsolver is a river-only poker solver. Its principal workflow reads a run file, loads board and player ranges, constructs a betting tree, iterates counterfactual-regret minimization, then writes strategy and expected-value reports. The tree and evaluator are distinct domain stages; card encoding and hand-strength calculation support range preparation and showdown EVs. The tree, range, and board data files are present, but their exact run-file format and wiring are only partly visible, so the graph does not infer links to individual data files. CFR action logic is represented by the indexed source file, whose implementation was read but not excerpted.
Main entry points: RiverTree.h River tree · main.cpp CLI runner · TreeNode.h Node mechanics · EVCaculator.cpp Showdown EV calculator
Components 14
Solver entry
- CLI runner
main.cpp
Cards and ranges
- Range and board data
files - Card and range codec
src/CardCodec.cpp - Hand evaluator
src/HandEvaluator.cpp
Tree and strategy
- Betting tree data
files/strategy_tree.txt - River tree
include/RiverTree.h - Tree iteration
include/GameTree.h - Node mechanics
include/TreeNode.h - CFR actions
include/ActionEdge.h - CFR strategy updates
src/CFRsolver.cpp
Evaluation and results
- Showdown EV calculator
src/EVCaculator.cpp - Strategy and EV reports
Other components
- Solver user
- Run input
Connections 15
- Solver user → CLI runner: starts
main.cpp - CLI runner → Run input: reads
main.cpp - CLI runner → River tree: configures and runs
main.cpp - River tree → Range and board data: loads ranges and board
include/RiverTree.h - River tree → Betting tree data: loads betting tree
include/RiverTree.h - River tree → Tree iteration: extends
include/RiverTree.h - Tree iteration → Node mechanics: operates on nodes
include/GameTree.h - Node mechanics → CFR actions: updates action state
include/TreeNode.h - Node mechanics → CFR strategy updates: calls strategy updates
include/TreeNode.h - River tree → Showdown EV calculator: calculates leaf EV
include/RiverTree.h - River tree → Card and range codec: decodes hands
include/RiverTree.h - Card and range codec → Hand evaluator: evaluates hand strength
- Showdown EV calculator → Card and range codec: encodes hand IDs
src/EVCaculator.cpp - Showdown EV calculator → Hand evaluator: ranks hands
src/EVCaculator.cpp - River tree → Strategy and EV reports: writes reports
include/RiverTree.h