コード例 #1
0
ファイル: poker.cpp プロジェクト: levka17/FullTiltEquity
bool table::operator==(const table & another) const
{
	return this->size == another.get_size()
		&& this->pot == another.get_pot()
		&& this->street == another.get_street()
		&& this->shared == another.get_cards()
		&& this->players == another.get_players()
		&& this->blinds == another.get_blinds();
}
コード例 #2
0
ファイル: poker.cpp プロジェクト: levka17/FullTiltEquity
table table::operator=(const table & another)
{
	this->size = another.get_size();
	this->pot = another.get_pot();
	this->street = another.get_street();
	this->shared = another.get_cards();
	this->players = another.get_players();
	this->blinds = another.get_blinds();
	return *this;
}
コード例 #3
0
ファイル: poker.cpp プロジェクト: levka17/FullTiltEquity
void state::update(table & table)
{
	street = table.get_street();
	dealer_pos = table.get_dealer_pos();
	active_players = table.active_players_count();

	if (table.my_player_exists())
	{
		pocket = table.get_my_player().get_hand();
		equity = table.calculate_equity();
	}
	else
	{
		pocket = make_hand();
		equity = 0.f;
	}
}