Question: **IN JAVA** in this portion of the project you will write a progam that simluates a card-matching game between two players. For each game, a

**IN JAVA**  **IN JAVA** in this portion of the project you will write

in this portion of the project you will write a progam that simluates a card-matching game between two players. For each game, a standard deck of 52 playing cards will be laid out in 4 rows of 13 columns, in random fashion. The two players then altermate picking two cards to flip over, to seeif they match. A matching pair is made up of two cards that have the same number as well as color, thus hearts matches diamonds, and spades matches clubs If a match is found, the player who found the match gets to pick again, continuing until they pick two cards that don't match The game ends when all the cards are matched, and the winner is the player with the most matches Details All printing below should be done to a file, whose name is up to you Your two players must use different guessing stratigies. The layout of the game must be hidden from them, but they are allowed to remember cards that have been placed face up. Some possible stratigies are Completely Random First card something unseen, second card random First card random, second card based off memory Both cards based off memory Any other variations of these Update 10/2817 The card number 10 requires 2 characters just to print the number. You can use a three character code for cards with a 10 on them, or use a single character, such as 'T.I recommend using a single character, will keep the grid neater when printed. After each guess, the table of cards should be printed out, with the two cards guessed "face up": You can print your game setup using the following abbreviations e A card facedown can be printed with an "O0" (two capital o's). . A card faceup can be pritned using the two character code 1. The number/face value of the card 2. The suited the card ODhamonds, (Hearts, (S)Pade, and (C)hds. e An empty space where a match has already been found can be printed as a match is found, print out a sentence similar to Congrats! You matched the cards 4D and 4H After all the matches have been found, print the winner of the game (Player 1 or Player 21, along with how many matches they found. In the event of a tie you can just print "it was a tie ar something similar The program will continue to play mutiple games. The number of games played in each esecution should be a random integer from 1 to 40

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!