O'Reilly logo

Joy of Patterns: Using Patterns for Enterprise Development, The by Brandon Goldfedder

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

stdhand.h

 // StandardBlack jack hand header // Brandon Goldfedder #ifndef _STANDARDBLACKJACKHAND #define _STANDARDBLACKJACKHAND #include "bjhand.h" #include <deque> class Displayer; // Forward reference to avoid circular // references' class StandardBlackJackHand: public BlackJackHand { public: StandardBlackJackHand(Displayer* displayer); virtual ~StandardBlackJackHand(); unsigned int LowCount() const; // Count the Ace as lower unsigned int HighCount() const; // Count the Ace as high bool IsBlackJack() const; // Is there a blackjack bool IsSplitable() const; // Is there a blackjack unsigned int NumCards() const; // How many cards have been dealt const Card& GetCard(unsigned int which) const; // Get a card user must ensure which <= NumCards void ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required