Page 1 of 1

C++ Final Project Help - Memory Game R3 [1] Start Game When the user inputs 1 in the Main Menu, the game starts with the

Posted: Thu Jul 14, 2022 2:07 pm
by answerhappygod
C++ Final Project Help - MemoryGame
R3
[1] Start Game
When the user inputs 1 in the Main Menu, the game starts withthe current game settings .
The game board has a size of 8 x 8 pieces
C Final Project Help Memory Game R3 1 Start Game When The User Inputs 1 In The Main Menu The Game Starts With The 1
C Final Project Help Memory Game R3 1 Start Game When The User Inputs 1 In The Main Menu The Game Starts With The 1 (5.45 KiB) Viewed 23 times
R3.1 Unrevealed Piece
Each piece has two sides: one side has a number, and the otherside has a letter. When a piece is unrevealed, the side with anumber is displayed. It indicates the number of times the playercan turn over the piece to see the hidden letter in the other side.The number of maximum trials has a default value of 5 and will bedecreased each time after turning over to see the hidden letter inthe other side. The letter has a default range from A to F. Youcannot see the letter until you have selected a piece to turn itover to reveal the letter. All the pieces should be generatedrandomly when the game starts. Make sure that the generated pieceshave at least 2 different letters in order to avoid the whole gameboard has the same letter for all pieces.
R3.2 Rules
Every time, the player can choose a piece (by indicating the rowindex and column index) in the game board to turn it over to revealthe letter.
When the game board has only one piece showing a letter, playercan choose another unrevealed piece to match the letter of therevealed piece. If both pieces have the same letter, then these twopieces will be removed from the game board. If the letters of thetwo pieces do not match, the number associated with both two pieceswill be decreased by one. If any of them reaches zero, the gameends. Otherwise, the two pieces will be turned over and displayedthe numbers again.
An example of choosing unrevealed pieces is demonstrated below(only a portion of the game board has been shown), with therelevant pieces at each time highlighted in red:
C Final Project Help Memory Game R3 1 Start Game When The User Inputs 1 In The Main Menu The Game Starts With The 2
C Final Project Help Memory Game R3 1 Start Game When The User Inputs 1 In The Main Menu The Game Starts With The 2 (6.82 KiB) Viewed 23 times
C Final Project Help Memory Game R3 1 Start Game When The User Inputs 1 In The Main Menu The Game Starts With The 3
C Final Project Help Memory Game R3 1 Start Game When The User Inputs 1 In The Main Menu The Game Starts With The 3 (20.27 KiB) Viewed 23 times
C Final Project Help Memory Game R3 1 Start Game When The User Inputs 1 In The Main Menu The Game Starts With The 4
C Final Project Help Memory Game R3 1 Start Game When The User Inputs 1 In The Main Menu The Game Starts With The 4 (4.86 KiB) Viewed 23 times
R3.3 Player’s Action
In each round, the player needs to input a row index and acolumn index corresponding to the location of an unrevealed piecein the game board. If the selected piece is in the game board, thenthat piece will be turned over and revealed the letter associatedwith it. Appropriate meaningful error messages should be printed ifthe player takes any incorrect action or provides any incorrectinput. The player is then allowed to select a piece again.
pls using C++ to create this Memory Game
pls using C++ to create this Memory Game
Thank a lot ! Thank you !
5​5​5​5​5​5​5​ 55555555 5​5​5​5​5​5​5​5​ 5​5​5​5​5​5​5​ 5​5​5​5​5​5​ 5​5​5​5​5​5​5​5​ 5​5​5​5​5​5​5​ 5​5​5​5​5​5​5​
First, select the piece located at Row 2 and Column 1
Second, select the piece located at Row 1 and Column 2 Third, the letters of the two revealed piece do not match so their numbers are both decreased by one Fourth, select the piece located at Row 3 and Column 4 1234 Fifth, select the piece located at Row 2 and Column 1 1234
Finally, the matched pieces are removed. 1234 1 115455 l 21555 1 31555