Simple JAVA Memory Matching Game

Slutfört Publicerat 5 år sedan Betalades vid leverans
Slutfört Betalades vid leverans

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.

Coding Java Programming Swing (Java)

Projekt-id: #17229766

About the project

11 offerter Distansprojekt Aktivt 5 år sedan

Tilldelades:

it2051229

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 Mer

$50 USD inom 1 dag
(1083 omdömen)
7.6

11 frilansare har lagt bud på i genomsnitt $120 för det här jobbet

NovaSofts

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

$155 USD inom 3 dagar
(342 omdömen)
7.5
asadrana91

Hello this is Asad, i have a vast experience in java programming, if you need an A grade in your assignment, contact me.

$144 USD inom 2 dagar
(94 omdömen)
6.5
usamamw141

Hey there, Don't go for cheap ones. Hire me if you want quality work. Feel free to inbox me any time.

$100 USD inom 4 dagar
(41 omdömen)
4.8
junaidlodhi6

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

$100 USD inom 3 dagar
(22 omdömen)
4.5
Awan005

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 fr Mer

$111 USD inom 3 dagar
(0 omdömen)
0.0