The memory game is a game played with 10 cards, each placed face down. Each card has a capital letter printed on it. There are exactly 5 matching pairs of cards.
Each turn is as follows:
The player turns two cards upright.
If the cards are the same, then the cards remain upright.
If the cards are different, then the cards are turned face down again. The cards always remain in the same relative position. Write a C++ program to implement this game. The game stops when all cards have been matched. Once the game has concluded, ask the user if he/she wishes to play again.Hint: You decide what the cards will be!Hint: you will need to remember the letter on the card, as well as whether the card is face down or not.
Tags: