Question: Object Oriented C++ programming: Blackjack game Create a C++ program using basic class and class conversions. Program Requirements: Your task is to design and code

Object Oriented C++ programming: Blackjack game

Create a C++ program using basic class and class conversions.

Program Requirements:

Your task is to design and code the card game blackjack in C++.

Rules: http://www.blackjackrulesandstrategy.com/basic-rules.shtml

The program must have the following requirements:

Blackjack game must support up to four players, which are three players plus the dealer.

When the game begins, the user will be prompted to enter the number of players and the number of hands that will be played.

At the beginning of each hand, the deck of cards needs to be initialized (i.e.reshuffled).

Initially, each player is dealt two cards, one face-up (value displayed) and one face-down (value not displayed).

In the event the dealer has black -jack (i.e. 21), the dealers hand will be displayed and the game is over.

Starting with player number one...

1) Display the face-down card (well pretend the other players cannot see this card).

2) The player can take a hit or stay.

3)If the player takes a hit, the dealer will deal the player a card, face-up. If this card puts the player over 21, they have gone bust, their hand will be displayed, and the dealer moves onto the next player. If this card does not bust the player, step (2) is repeated.

4) If the player stays, the dealer moves onto the next player.

The above process continues for each player.

After all the players have either busted or are satisfied with their hand, display the dealers face-down card.

The dealer must take a hit if their total is 16 or fewer, and must stay once they reach 17 or more points.

If the dealer busts, all remaining players (who did not bust on their turns) are winners.

If the dealer stands on a certain number like 18, all the players with better hands (i.e.> 18) win, all the players with lower hands

(i.e. 18) lose.

After all the hands are played, the win/loss summary must be displayed.

Code Requirements:

The implementation of the playing cards within your code must be fully encapsulated within one, or more, C++ class (i.e. you will need member functions to perform operations such as dealing a card, displaying a card, displaying a hand, displaying winner/loser, shuffling the deck, etc.)

Your code must utilize C++ classes, the specific classes created will depend on your implementation. Your goal is to create and utilized the features of OOP that result in the best solution possible.

No using enum. Stick with classes, pointers and closely associated methods. Whole project should revolve around classes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!