Ejemplo n.º 1
0
double BetsizeForBetpot(int betpot_action_code) {
  assert(betpot_action_code >= k_autoplayer_function_betpot_2_1);
  assert(betpot_action_code <= k_autoplayer_function_betpot_1_4);
  double pot_after_i_call = p_symbol_engine_chip_amounts->pot()
    + p_symbol_engine_chip_amounts->call();
  double additional_money_into_pot = BetPotFactor(betpot_action_code) 
    * pot_after_i_call;
  double final_betsize = p_symbol_engine_chip_amounts->currentbet(USER_CHAIR)
    + p_symbol_engine_chip_amounts->call()
    + additional_money_into_pot;
  assert(final_betsize > 0);
  return final_betsize;
}
double BetsizeForBetpot(int betpot_action_code) {
  assert(betpot_action_code >= k_autoplayer_function_betpot_2_1);
  assert(betpot_action_code <= k_autoplayer_function_betpot_1_4);
  double pot_after_i_call = p_engine_container->symbol_engine_chip_amounts()->pot()
    + p_engine_container->symbol_engine_chip_amounts()->call();
  double additional_money_into_pot = BetPotFactor(betpot_action_code) 
    * pot_after_i_call;
  double final_betsize = p_table_state->User()->_bet.GetValue()
    + p_engine_container->symbol_engine_chip_amounts()->call()
    + additional_money_into_pot;
  assert(final_betsize > 0);
  write_log(Preferences()->debug_autoplayer(), "[AutoPlayer] Betsize for betpot-action:  %.3f\n",
    final_betsize);
  return final_betsize;
}