Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. SUMMARY This project will simulate the card game Concentration for one player

ID: 3863461 • Letter: 1

Question

1. SUMMARY This project will simulate the card game Concentration for one player. In Concentration, all cards, or pictures in this case, are upside down. Two cards are chosen, and if they match they are taken out of the game. If they don't match in this version, one "allowed fail" is decremented. The player starts with a set number of allowed fails, such as 8. This project will involve the following: 2 Activities hooked together by an Intent. TableLayout Image Views. User OnClick event handling. 2. DETAILS a. Home Activity screen. i. Shows Wins, Losses, and highest number of "Allowed Fails" eft. ii. Shows a button to begin game. 1. Game Activity is started by expecting values back via its Intent. iii. Handles return from Game Activity upon GAME END. 1. If return is -1, then Losses number goes up 1. 2. If return is 0 or more, then Wins is incremented and the number returned from the game Activity replaces highest Allowed Fails left number if higher b. Game Activity. i. Displays 4x4 grid of pictures using the TableLayout type. ii. The pictures will be ImageView view types and each will have a unique ID. 1. There are 3 sets of pictures for each of the 16 ImageViews. a. The upside down pic, which can be a pic or something like that. b. The pic itself, revealed when the user clicks the upside down pic c. The completed pic, which can be a check mark, green light, etc. iii. The Activity java file will handle onClick events on the pictures 1. On first of two grid clicks: The picture is shown. 2. On second of two grid clicks: The second picture is shown for about 3 seconds or you can simply show a "Continue" button, then after the timer has ticked off 3 seconds or the user clicks the button (whichever way you designed it)...

Explanation / Answer

Hi, This is what I could do in 2 hours .

MainActivity File :

Main activity xml :

Manager Activity :

Manager activity xml :

Card Java file :

Android Manifest file :