Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
Task: Find Matching Pairs Game

Instructions

Task:

Note that each letter is represented exactly twice in the right diagram. The object of the game is to find as many matching pairs as possible. Each round of gameplay should do the following:

1.Print the board. Previously matched cards should show the matched letters.

2.Ask the player if they’d like to Find a match (F) or Quit (Q)

3.If the player chooses Find, ask for the two cards in row, column format. Make sure that the cards are not the same card(e.g., player chooses card 1,1 and 1,1) and that neither card has already been matched. If either of these cases is true, then prompt the player to choose new cards in row, column format.

4.After each choice, tell the player how many points they have. They get a point for every matching pair of cards.

5.Print the player’s final number of points if they choose to Quit (Q).

If there are no cards left to play (all matches have been found) the player wins and the game should print their final points and end. See the Expected Output section for more details on gameplay.

support
close