src/betting_trees.cpp
// Only construct the target player's betting tree
Only construct the target player's betting tree
Only construct the target player ' s betting tree
BettingTrees::BettingTrees(const BettingAbstraction &ba, int target_player) {
  if (! ba.Asymmetric()) {
    fprintf(stderr, "Can only call this constructor for asymmetric betting abstraction\n");
    exit(-1);
  }
  asymmetric_ = true;
  target_player_ = target_player;
  int num_players = Game::NumPlayers();
  betting_trees_.reset(new shared_ptr<BettingTree>[num_players]);
  betting_trees_[target_player].reset(new BettingTree(ba, target_player));
}
BettingTrees :: BettingTrees ( const BettingAbstraction & ba , int target_player ) { if ( ! ba . Asymmetric ( ) ) { fprintf ( stderr , " \n " ) ; exit ( -1 ) ; } asymmetric_ = true ; target_player_ = target_player ; int num_players = Game :: NumPlayers ( ) ; betting_trees_ . reset ( new shared_ptr < BettingTree > [ num_players ] ) ; betting_trees_ [ target_player ] . reset ( new BettingTree ( ba , target_player ) ) ; }
Only construct the target player's betting tree
Only construct the target player ' s betting tree