Use object-oriented programming to develop an application


Use object-oriented programming to develop an application for the game of memory. Memory consists of a 20 × 20 grid of face down cards where there is at most one pair of each card in the grid. The types of cards that are available in this version of the game are DOG, CAT, RAT, MOUSE, PENCIL, CRAYON, ROCK, BOOK, BAG, and KEY. Adding a new type of card to the game should only require the creation of a new class that inherits properties from an existing Card class. Each card has a unique description associated with it that will give the player something to remember that card by. Game play proceeds by flipping two cards over to determine if a matching pair has been found. After the pair has been chosen, the application should report the description of the card and if a match was found or not found. If a matching pair has been found, those cards are no longer able to be chosen and the application should report if a card is chosen that already corresponds to a match and will allow the player to choose a different card. The game continues until all matches have been found or the user types in the command 'quit'.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Use object-oriented programming to develop an application
Reference No:- TGS0974134

Expected delivery within 24 Hours