ActionRet HoldemTournamentAIManual::probeBet(const TableTexture& t, bool debug)
{
	ActionRet ret;
	ret.name="probeBet";
	ret.action=FOLD;
	ret.amt=0;

	profile_line(" -- probeBet() -- ");

	PokerHand tmpHand=table->getBoard(),
		h=table->getHand();

	bool poorHand=false;
	bool noAction=(getTotalRaises()==0);
	bool headsUp=(table->getPlayersActive()<=2);
	while (tmpHand.size()>0) {
		Card tmp=tmpHand.HighCard();
		if (tmp.GetRank()==h[0].GetRank()) poorHand=true;
		if (tmp.GetRank()==h[1].GetRank()) poorHand=true;
	}
	if (h[0].GetRank()==12||h[1].GetRank()==12||h[0].GetRank()==h[1].GetRank()) poorHand=true;
	
	bool probebet=poorHand&&noAction&&headsUp;

	if (debug) {
		cout << "probe bet: " << probebet << endl;
		cout << " probe-able flop: " << poorHand << endl;
		cout << " heads up/!action: " << (noAction&&headsUp) << endl;
		cout << endl;
	}

	if (probebet) {
		ret.action=BET;
		ret.amt=betPassive();
	}

	return ret;
}