src/vcfr.cpp
// Should be sure to call this while the worker is idle
Should be sure to call this while the worker is idle
Should be sure to call this while the worker is idle
void VCFRWorker::Reset(int pst) {
  int num_prev_hole_card_pairs = Game::NumHoleCardPairs(pst);
  vals_.reset(new double[num_prev_hole_card_pairs]);
  for (int i = 0; i < num_prev_hole_card_pairs; ++i) vals_[i] = 0;
}
void VCFRWorker :: Reset ( int pst ) { int num_prev_hole_card_pairs = Game :: NumHoleCardPairs ( pst ) ; vals_ . reset ( new double [ num_prev_hole_card_pairs ] ) ; for ( int i = 0 ; i < num_prev_hole_card_pairs ; ++ i ) vals_ [ i ] = 0 ; }
Should be sure to call this while the worker is idle
Should be sure to call this while the worker is idle