예제 #1
0
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
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
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;
	}
}