Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Memory Matching Game!! Please help!! (For MAC Xcode!!!) Select a Theme and have 50 words associated with it: Words must have a common theme

C++ Memory Matching Game!! Please help!! (For MAC Xcode!!!) Select a Theme and have 50 words associated with it: Words must have a common theme - your choice Examples: Like Periodic Table Elements, or Sports teams, or Types of cars Max number characters in each word is eight(8) Have one Term describing category/theme you picked. This is the FACE term Menu: Start Options New Game Option Exit Game Option Level of Play Use selects at start of game 4 x 4 grid (Easy) 6 x 6 grid (Moderate) 8 X 8 grid (Difficult) Speed of Play At start of game, User selects time interval for clicked-on term-pair to display 1 seconds (Difficult) 3 seconds (Moderate) 5 seconds (Easy) Populate Grid with Term At start of game program places the same face/theme term in all squares in the visible grid If 4 x 4 grid, randomly pick 8 terms, place each image name twice in 2-Dim array. If 6 x 6 grid, randomly pick 18 terns, place each image name twice in 2-Dim array. If 8 x 8 grid, randomly pick 32 terms, place each image name twice in 2-Dim array. The 2-Dim Array corresponds to grid on screen. During the course of play, the face/theme term in the grid is replaced by a corresponding array terms, when user selects a grid square Game Play 1)User selects a FIRST square, the theme/face term in the grid square is replace with correspond stored term, from the 2-dim array 2)User selects a SECOND square, the term theme/face in the second grid square is replace with the corresponding stored term, from the 2-dim array 3)The computer compares the terms for the two selected squares. If they are the same, the terms remain on the screen and can no longer be selected. If they are different, the term remain the screen for 1, 3 or 5 seconds, depending on user selection at the beginning of the game. After that elapse time, those two grid terms are replaced with the face/theme term. ===================================== The class you write A class consists of variables/arrays and functions. All your variables/arrays and functions are to be encapsulated inside the Memory Match game class you write. The class will use 1 and 2 dimensional arrays The class will have several variables The class will have several functions clearly named There will be NO GLOBAL VARIABLES/Arrays or functions declared above int main(). All variables and arrays and functions will be ENCAPSULATED in the class. The int main() in your code contain only two lines of code:: #include iostream; using namespace std; #include string; #include MemoryMatchGame; Int main() { MemoryMatchGame Game1; // first line - declare instance of game Game1.start(); // second line - start game } Timer (Extra credit) - Create/display a timer that keep track of the number of seconds it took to win a game.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago