The objective of this task is to create a memory match game. Initially, the program will randomly assign eight image names to a 4x4 board using a two-dimensional array. Next, the program prompts the user to select two tiles, revealing them to see if they match. The player can turn over nine tiles to discover three sets of matching pictures. The user will lose the game if they cannot reveal three sets of matching pairs. As the game progresses, the program keeps track of revealed matching pictures in a vector and displays them at the end of the game. To better comprehend this game, please refer to the executable file provided with the assignment requirements. The program should have the following functions: 1- Generate a random number: generates random numbers between the minimum and maximum numbers. 2- Fill the board: Initialize the board with numbers between 1 and 16 distributed randomly. Each number minus one corresponds to the index of one of the pictures that are saved in an array. 3- Print Board: prints the board. 4- Get row: returns the row number of the board based on the tile number. 5- Get Column: returns the col number of the board based on the tile number. 6- Reveal a tile: prints the board with revealed matched picture names and currently revealed pictures. 7- Check similarity: checks if the pair of revealed pictures are identical. 8- Get valid tile number: gets the tile number from the user and checks if it is a valid number. A valid number is between 1-16 and is not revealed with a matching pair. 9- Print identical match: prints the names of the identical revealed pictures.   Assessment: include your full name and student number as a block comment at the beginning of the program use meaningful names when defining variables/constants add sufficient comments throughout the program to aid understanding  proper use of indentation and white spaces. Generate random number Fill the board function.  Print Board. Reveal a tile function. Check similarity. Get valid tile number.  Print identical match.  Get Row. Get Column.   Main function and any additional functions. Note all inputs should be validated.   USE C++ and vector

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
  1. The objective of this task is to create a memory match game. Initially, the program will randomly assign eight image names to a 4x4 board using a two-dimensional array. Next, the program prompts the user to select two tiles, revealing them to see if they match. The player can turn over nine tiles to discover three sets of matching pictures. The user will lose the game if they cannot reveal three sets of matching pairs. As the game progresses, the program keeps track of revealed matching pictures in a vector and displays them at the end of the game.

    To better comprehend this game, please refer to the executable file provided with the assignment requirements. The program should have the following functions:

1- Generate a random number: generates random numbers between the minimum and maximum numbers.

2- Fill the board: Initialize the board with numbers between 1 and 16 distributed randomly. Each number minus one corresponds to the index of one of the pictures that are saved in an array.

3- Print Board: prints the board.

4- Get row: returns the row number of the board based on the tile number.

5- Get Column: returns the col number of the board based on the tile number.

6- Reveal a tile: prints the board with revealed matched picture names and currently revealed pictures.

7- Check similarity: checks if the pair of revealed pictures are identical.

8- Get valid tile number: gets the tile number from the user and checks if it is a valid number. A valid number is between 1-16 and is not revealed with a matching pair.

9- Print identical match: prints the names of the identical revealed pictures.

 

Assessment:

include your full name and student number as a block comment at the beginning of the program

use meaningful names when defining variables/constants

add sufficient comments throughout the program to aid understanding

 proper use of indentation and white spaces.

Generate random number

Fill the board function.

 Print Board.

Reveal a tile function.

Check similarity.

Get valid tile number. 

Print identical match.

 Get Row.

Get Column. 

 Main function and any additional functions. Note all inputs should be validated.

 

USE C++ and vector

 

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Fundamentals of Multithreaded Algorithms
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY