Question
In c++, Create a class called CardHand. Your class should use a vector to store all the cards in a players hand. Remember in a
In c++, Create a class called CardHand. Your class should use a vector to store all the cards in a players hand. Remember in a card game, a player is usually dealt one card at a time. Your class should be design to accommodate this. Next, create another class, CardHandScorer that is used to analyze a players hand and determine a score for that hand. Because we are going to create a Blackjack game as our final project, we will focus on making a scorer for Blackjack only, though I encourage you to challenge yourself and make a scorer for Poker as well. The CardHandScorer class should use a static function that takes a CardHand as an argument. The purpose of this static function is to return the score for the BlackJackHand. Remember, there are times that a Blackjack hand can have two different scores. I want your function to accommodate for this. I want you to think about how to do this. If you get stuck, then feel free to ask me what the struct I am talking about.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started