Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool CHand::isBlackjack() const
- {
- if(this->cards_.size() == 2)
- {
- if(this->cards_[0].isAce() && this->is_split_)
- {
- return false;
- }
- return (this->cards_[0].isAce() && (this->cards_[1].getCardValue() == 10)) || (this->cards_[1].isAce() && (this->cards_[0].getCardValue() == 10));
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement