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(); }
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; }
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; } }