src/agent.cpp
// Map the opponent's actual bet to an action in our abstraction.  We may map a bet to a
// check/call.
Map the opponent's actual bet to an action in our abstraction.  We may map a bet to a
check/call.
Map the opponent ' s actual bet to an action in our abstraction . We may map a bet to a check / call .
int Agent::ChooseOppAction(Node *node, int below_succ, int above_succ, int actual_bet_to,
			   int actual_pot_size, Node **raise_node) {
  int call_succ = node->CallSuccIndex();
  if (below_succ == call_succ || above_succ == call_succ) {
    return ChooseBetweenBetAndCall(node, below_succ, above_succ, actual_bet_to, actual_pot_size,
				   raise_node);
  } else {
    *raise_node = nullptr;
    return ChooseBetweenTwoBets(node, below_succ, above_succ, actual_bet_to, actual_pot_size);
  }
}
int Agent :: ChooseOppAction ( Node * node , int below_succ , int above_succ , int actual_bet_to , int actual_pot_size , Node * * raise_node ) { int call_succ = node -> CallSuccIndex ( ) ; if ( below_succ == call_succ || above_succ == call_succ ) { return ChooseBetweenBetAndCall ( node , below_succ , above_succ , actual_bet_to , actual_pot_size , raise_node ) ; } else { * raise_node = nullptr ; return ChooseBetweenTwoBets ( node , below_succ , above_succ , actual_bet_to , actual_pot_size ) ; } }
Map the opponent's actual bet to an action in our abstraction.
Map the opponent ' s actual bet to an action in our abstraction .