create a simple game of your choice in java. Requirements must include: 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 requiremen

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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

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
steps

Step by step

Solved in 3 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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education