Memory Matching Game
-Using Java Swing
-Write a GUI version of a card matching game using the swing package.
Your program should have 4 rows and 4 columns of cards that have an image that is hidden when the cards are face down. (Note: The cards can have another image facing up like a real deck has on the back)
-The game is played by clicking on two cards which are face down. If they match, they stay visible.
-If they don't match, they will need to be flipped back face down before choosing another card.
-There should be a "Continue" button which flips back two non-matching cards.
-If you click on a "face up" card, it should just be ignored.
-The "Continue" button should not flip cards when only one has been flipped up. It should only flip cards to the hidden side if there are two non-matching cards turned up.
-The number of attempts and the number of matches should be counted and displayed per game.
-An attempt is incremented when 2 cards have been flipped up, regardless of match/mismatch.
-The score is calculated as attempts/matches. (Keep in mind division by zero)
-When the user chooses to end the game, they should be asked to confirm their choice.
-If they say YES, they should see a sentence that uses their score to assess the player’s memorizing ability before the program exits.
The game will need at least the following:
-A 2 Dimensional Board of Cards
-Labels to display Status, Matches, Attempts, Score
-JButtons:
One to flip the cards back over so their matchable images are hidden
One to end the game. (Remember to confirm the choice before exiting)
Create and use Card class that extends the JButton class. It should have at least the following:
Instance variables:
-ImageIcon imageIcon
-String imagePath
Constructors:
Default
Overloaded Constructor that takes in the imagePath as a String
Methods:
hideCard()
showCard()
equals(Object o)
Syntax Hint For creating a scaled image that will load fast and fit on your Card:
ImageIcon ic_reg = new ImageIcon("images/[login to view URL]");
ImageIcon ic_logo = new ImageIcon(((Image) [login to view URL]()).getScaledInstance(70, 70, Image.SCALE_FAST));
To set the ImageIcon on a JButton object just call the setIcon method and
pass in the name of the ImageIcon object you created.
Score conditions to be used for the end of game status:
score > 97 AMAZING
score > 80 Excellent
score > 60 OK
score > 30 lacking
score >10 suffering
Score >=0 Mind has escaped
Program should be as simple as possible.
Hi there, I do Java programming and I would like to do this project if given the opportunity. I went through the requirements and I am confident to do implement the GUI based card matching game. Let me know if you are interested.
$50 USD dalam 1 hari
4,9 (1083 ulasan)
7,6
7,6
11 freelancer menawar dengan rata-rata $120 USD untuk pekerjaan ini
Hello Sir/ Ma’am
We are a group of Software Engineers having 10+ years of experience. Expert in JAVA, C, C++ , C# , ANDROID, MATLAB. Please check our profile for reference.
Thank you
my 2nd top level skill is java
i already have this memory matching game( flip flop) in c#... i will convert it in java... and can give you as early as poosible... thanks
I work in a co-working environment so I can complete this project with speed & accuracy. I will done your project in full professional way according to your requirements and my creative ideas. I am doing development from last 5+ years. I can also show my past projects to you in chat So inbox sir I will further Insist you there. Trust me you really appreciate my work mark my words sir. kindly share details over chat inbox me.. Your satisfaction is my first priority. i read the description inbox me i will done it in perfect way inbox me i have aslo done poker game in Java come inbox i will show you inbox me