Question
Write a c++ program to play a memory game. The game consists of a game board that has r rows and c cols (work with
Write a c++ program to play a memory game. The game consists of a game board that has r rows and c cols (work with a minimum of 20 spaces on the board). The board consists of matching pair of numbers, every number on the board will have a pair located somewhere else on the board. So if your board contains 30 spaces, there will be 15 pairs
The numbers in the board should be generated randomly (random number generator)
The location the pairs should be put in the board should also be generated randomly.
Your program should have the user try to select two position that have matching content. If the positions don't match
output an appropriate message along with the content of both positions. If the user guess a correct pair, it should print an appropriate message, and should not let the user guess any of those positions again (Guess it should print an appropriate message). Use functions to implement it. Use as many functions as you require.
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