Question: In C + + Please A common memory matching game played by young children is to start with a deck of cards that contains identical

In C++ Please
A common memory matching game played by young children is to start with a deck of cards that contains identical pairs. For example, given six cards in the deck, two might be labeled "1," two might be labeled "2," and two might be labeled "3." The cards are shuffled and placed face down on the table. The player then selects two cards that are face down, turns them face up, and if they match, they are left face up. If the two cards do not match, they are returned to their original position face down. The game continues in this fashion until all cards are face up.
In this project, you have to write a C++ program to design a memory matching game. If you correctly match identical pairs, you will earn 5 points. If you guess incorrectly, you lose 1 point. You can keep playing as long as you have points remaining. You can also choose to display unknown pairs, but you will lose more points (10 points for each display of identical pair).
In this game, there are two 2D arrays (matrices)- one for the arrangement of cards and another to store status of cards that indicates if a card is face up or face down. Use 16 cards that are laid out in a \(4\times 4\) square and are labeled with pairs of numbers from 1 to 8. Your program should allow the player to specify the cards that you would like to select through a coordinate system.
In C + + Please A common memory matching game

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 Programming Questions!