create a simple game of your choice in java. Requirements must include: please show code all code to correctly compile. 1. There will need to be a game window implemented as a JFrame. 2. Your game must provide instructions to the player. 3. You must have at least two different visual elements (buttons, labels, text fields, etc.) – at a minimum! 4. There must be a way for the user to interact with the game that causes some visual elements to change their appearance. For example, clicking on a button that represents a playing card could flip the card over to show its value, or correctly typing in the answer to a riddle could cause a smiley face to appear. 5. Your game should have some sort of score or goal. The level of success/total points should be displayed. 6. Be sure to design your game using good object-oriented coding principles. Make appropriate use of collections like arrays or ArrayLists and loop over them to avoid unnecessary code repetition. If relevant, consider storing data needed by your game in a file so that it can be modified easily.  Example of concentration(memory) provided, as well as other requirement

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter4: Making Decisions
Section: Chapter Questions
Problem 8E: In the game Rock paper Scissors, two players simultaneously choose one of three options: rock,...
icon
Related questions
Question
100%

 

create a simple game of your choice in java. Requirements must include:

please show code all code to correctly compile.

1. There will need to be a game window implemented as a JFrame.
2. Your game must provide instructions to the player.
3. You must have at least two different visual elements (buttons, labels, text fields, etc.) – at a minimum!
4. There must be a way for the user to interact with the game that causes some visual elements to change their appearance.
For example, clicking on a button that represents a playing card could flip the card over to show its value, or correctly
typing in the answer to a riddle could cause a smiley face to appear.
5. Your game should have some sort of score or goal. The level of success/total points should be displayed.
6. Be sure to design your game using good object-oriented coding principles. Make appropriate use of collections like arrays or ArrayLists and loop over them to avoid unnecessary code repetition. If relevant, consider storing data needed by your game in a file so that it can be modified easily. 

Example of concentration(memory) provided, as well as other requirement

 

Game 'Instructions' clearly communicated
] Game window includes visual elements of at least two different types
] At least one visual element is capable of movement/change
] User input updates the game in a meaningful way.
The game calculates and displays some 'score' or other measure of success
Subjective coolness."
-le
] Good use of classes and inheritance. Classes are coherent and cohesive.
] There is no unnecessary repetition of code.
] Standard coding conventions are followed, including variable names and indentation.
] The coding is meaningfully commented, and there is not commented out junk code
Transcribed Image Text:Game 'Instructions' clearly communicated ] Game window includes visual elements of at least two different types ] At least one visual element is capable of movement/change ] User input updates the game in a meaningful way. The game calculates and displays some 'score' or other measure of success Subjective coolness." -le ] Good use of classes and inheritance. Classes are coherent and cohesive. ] There is no unnecessary repetition of code. ] Standard coding conventions are followed, including variable names and indentation. ] The coding is meaningfully commented, and there is not commented out junk code
Instructions
Concentration
Concentration
Click on a card to flip it over. Find two cards with the same
image to create a match and remove them from the game
board. Clear the board to win.
OK
0 moves so far -- you're doing great!
Concentration
7 moves so far -- you're doing great!
Concentration
0 moves so far -- you're doing great!
Victory!
Concentration
Transcribed Image Text:Instructions Concentration Concentration Click on a card to flip it over. Find two cards with the same image to create a match and remove them from the game board. Clear the board to win. OK 0 moves so far -- you're doing great! Concentration 7 moves so far -- you're doing great! Concentration 0 moves so far -- you're doing great! Victory! Concentration
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Running Time of Application
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT