bkushigian / postflop-solver

An open-source postflop solver library written in Rust
GNU Affero General Public License v3.0
5 stars 0 forks source link

Rebuild/Reallocate/Resolve tree after load from disk #2

Open bkushigian opened 1 month ago

bkushigian commented 1 month ago

Currently we can perform a partial save (e.g., a flop or turn save) and reload it, but are unable to load/resolve unsaved nodes. This is crucial for making postflop-solver a full-fledged commercial grade solver.

This should be fairly straight forward to implement. We would need to

  1. Allocate global storage in the PostFlopGame and copy flop/turn data
  2. Allocate node_arena and rerun build_tree_recurisive. This will set up proper child/parent relationships between PostFlopNodes
  3. Add a new solve_from_node function that lets us perform a partial solve
  4. Find the boundary of for unsolved nodes and run solve_from_node on each