src/solve_all_subgames.cpp
// Get rid of this; use CreateSubtrees() from subgame_utils.cpp instead
// Assume no bet pending
// Doesn't support multiplayer yet
Get rid of this; use CreateSubtrees() from subgame_utils.cpp instead
Assume no bet pending
Doesn't support multiplayer yet
Get rid of this ; use CreateSubtrees () from subgame_utils . cpp instead Assume no bet pending Doesn ' t support multiplayer yet
BettingTrees *SubgameSolver::CreateSubtrees(Node *node, int target_p, bool base) {
  int player_acting = node->PlayerActing();
  int bet_to = node->LastBetTo();
  int st = node->Street();
  int last_bet_size = 0;
  int num_street_bets = 0;
  int num_terminals = 0;
  const BettingAbstraction &betting_abstraction = base ?
    base_betting_abstraction_ : subgame_betting_abstraction_;
  BettingTreeBuilder betting_tree_builder(betting_abstraction, target_p);
  shared_ptr<Node> subtree_root =
    betting_tree_builder.CreateNoLimitSubtree(st, last_bet_size, bet_to, num_street_bets,
					      player_acting, target_p, &num_terminals);
  return new BettingTrees(subtree_root.get());
}
BettingTrees * SubgameSolver :: CreateSubtrees ( Node * node , int target_p , bool base ) { int player_acting = node -> PlayerActing ( ) ; int bet_to = node -> LastBetTo ( ) ; int st = node -> Street ( ) ; int last_bet_size = 0 ; int num_street_bets = 0 ; int num_terminals = 0 ; const BettingAbstraction & betting_abstraction = base ? base_betting_abstraction_ : subgame_betting_abstraction_ ; BettingTreeBuilder betting_tree_builder ( betting_abstraction , target_p ) ; shared_ptr < Node > subtree_root = betting_tree_builder . CreateNoLimitSubtree ( st , last_bet_size , bet_to , num_street_bets , player_acting , target_p , & num_terminals ) ; return new BettingTrees ( subtree_root . get ( ) ) ; }
Get rid of this; use CreateSubtrees() from subgame_utils.cpp instead
Assume no bet pending
Doesn't support multiplayer yet
Get rid of this ; use CreateSubtrees () from subgame_utils . cpp instead Assume no bet pending Doesn ' t support multiplayer yet
// Only need initial street, stack size and min bet from // base_betting_abstraction_. // Delete the nodes under subtree_root?  Or does garbage collection // automatically take care of it because they are shared pointers.