Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

What is meant by 'Wealth Maximization ' ?

Answered: 1 week ago