The operations we want to perform on a Hand structure include the following:
- InitializeHand(): Sets the initial values of a Hand structure to a valid state
- AddCardToHand(): Receives a dealt card from the deck to the hand
- PrintHand(): Prints out the contents of the hand
With our current definition of Hand, we will need a way to determine which card in the hand we want to manipulate. To do this, we need a function:
- GetCardInHand(): Gets a pointer to a specific card within the hand. This method is used by other Hand functions to both set card values within a hand and to retrieve card values.
You can add the following function prototypes to carddeck_2.c:
voidInitializeHand( Hand* pHand );
voidAddCardToHand(Hand* pHand , Card* pCard );
voidPrintHand(Hand* pHand , char* pHandStr , char* pLeadStr );
Card* GetCardInHand(Hand* pHand ...