ActionRet HoldemTournamentAIManual::chaseDraws(const TableTexture& t, bool debug) { ActionRet ret; ret.name="chaseDraws"; ret.action=FOLD; ret.amt=0; profile_line(" -- chaseDraws() -- "); bool chasedraw=false; if (t.flushdraw&&table->getPotOdds(table->getCostToCall(getAIPlayer()))>4) chasedraw=true; if (t.straightdraw&&table->getPotOdds(table->getCostToCall(getAIPlayer()))>5) chasedraw=true; if (t.flushdraw&&t.straightdraw&&table->getPotOdds(table->getCostToCall(getAIPlayer()))>2) chasedraw=true; if (table->getBB()>=320) chasedraw=false; if (chasedraw) { ret.action=CALL; ret.amt=table->getCostToCall(getAIPlayer()); } if (debug) { cout << "chase: " << chasedraw << endl; cout << " flushes: " << t.flushdraw << endl; cout << " straights: " << t.straightdraw << endl; cout << " pot odds: " << table->getPotOdds(table->getCostToCall(getAIPlayer())) << endl; cout << endl; } return ret; }