Advertisement
Guest User

Untitled

a guest
May 6th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. bool CHand::isBlackjack() const
  2. {
  3.     if(this->cards_.size() == 2)
  4.     {
  5.         if(this->cards_[0].isAce() && this->is_split_)
  6.         {
  7.             return false;
  8.         }
  9.  
  10.         return (this->cards_[0].isAce() && (this->cards_[1].getCardValue() == 10)) || (this->cards_[1].isAce() && (this->cards_[0].getCardValue() == 10));
  11.     }
  12.  
  13.     return false;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement