It's time to put your Java knowledge to use. Create a basic version of rock- paper-scissors that allows users to play against the computer in the console. The game consists of a few main features: • Play rock-paper-scissors against a computer player. Play rock-paper-scissors against a human player. Hint: Use a random number generator to make the computer's choice. . Feature Requirements Your game must: • Have a main menu with options to enter 2 players or vs. computer. . If the user enters 2 players, they should be able to play rock-paper- scissors against a human competitor. . If the user enters vs. computer, they should be able to play against the computer. • When the game is over, the winner should be declared. Technical Requirements • Use classes to remove repetitive parts of code, and create an abstract Player class to manage the player's state (if they won or lost, how many points they have, what move they made). In addition, interfaces should be used in places where they are necessary. • Handle invalid user input. • Handle incorrect capitalization of otherwise valid user input ("rock," "Rock," "Rock," "ROCK," and more). • Each class (including a Player class) should have methods associated with it and be instantiated as an object (as opposed to a singleton or an interface). € • Use public, private, and static variables, methods, and members within each class appropriately. Technical Requirements • Use classes to remove repetitive parts of code, and create an abstract Player class to manage the player's state (if they won or lost, how many points they have, what move they made). In addition, interfaces should be used in places where they are necessary. • Handle invalid user input. • Handle incorrect capitalization of otherwise valid user input ("rock," "Rock," "Rock," "ROCK," and more). • Each class (including a Player class) should have methods associated with it and be instantiated as an object (as opposed to a singleton or an interface). • Use public, private, and static variables, methods, and members within each class appropriately. • Incorporate exception handling to make sure your game crashes gracefully if it receives bad input. • Get standard input with Java using a Scanner, or use Processing to get mouse, keyboard, or other input. • Use arrays or array lists to store game history (if applicable). Bonus Ideas • Write automated JUnit tests for your application. • Use an Agile project management framework for your game. . If the user enters history, the program should display previous game history (winner's name, game date, and more). • Use Java packages to modularize code. Place any helper tools in these packages - they could be related input, networking, or graphics. • Use Maven to install external dependencies your game might require. • Use generics on collections such as arrays and array lists to store different data composed of different types. • Use multithreading to handle concurrent requests (like in multiplayer games). €
It's time to put your Java knowledge to use. Create a basic version of rock- paper-scissors that allows users to play against the computer in the console. The game consists of a few main features: • Play rock-paper-scissors against a computer player. Play rock-paper-scissors against a human player. Hint: Use a random number generator to make the computer's choice. . Feature Requirements Your game must: • Have a main menu with options to enter 2 players or vs. computer. . If the user enters 2 players, they should be able to play rock-paper- scissors against a human competitor. . If the user enters vs. computer, they should be able to play against the computer. • When the game is over, the winner should be declared. Technical Requirements • Use classes to remove repetitive parts of code, and create an abstract Player class to manage the player's state (if they won or lost, how many points they have, what move they made). In addition, interfaces should be used in places where they are necessary. • Handle invalid user input. • Handle incorrect capitalization of otherwise valid user input ("rock," "Rock," "Rock," "ROCK," and more). • Each class (including a Player class) should have methods associated with it and be instantiated as an object (as opposed to a singleton or an interface). € • Use public, private, and static variables, methods, and members within each class appropriately. Technical Requirements • Use classes to remove repetitive parts of code, and create an abstract Player class to manage the player's state (if they won or lost, how many points they have, what move they made). In addition, interfaces should be used in places where they are necessary. • Handle invalid user input. • Handle incorrect capitalization of otherwise valid user input ("rock," "Rock," "Rock," "ROCK," and more). • Each class (including a Player class) should have methods associated with it and be instantiated as an object (as opposed to a singleton or an interface). • Use public, private, and static variables, methods, and members within each class appropriately. • Incorporate exception handling to make sure your game crashes gracefully if it receives bad input. • Get standard input with Java using a Scanner, or use Processing to get mouse, keyboard, or other input. • Use arrays or array lists to store game history (if applicable). Bonus Ideas • Write automated JUnit tests for your application. • Use an Agile project management framework for your game. . If the user enters history, the program should display previous game history (winner's name, game date, and more). • Use Java packages to modularize code. Place any helper tools in these packages - they could be related input, networking, or graphics. • Use Maven to install external dependencies your game might require. • Use generics on collections such as arrays and array lists to store different data composed of different types. • Use multithreading to handle concurrent requests (like in multiplayer games). €
Chapter4: Making Decisions
Section: Chapter Questions
Problem 8E: In the game Rock paper Scissors, two players simultaneously choose one of three options: rock,...
Related questions
Question
hello please code this for me in java.. and please make sure that its meets the requirements in the image and also matches the sample output
also please provide some comments.. please follow the instructions as it is mentioned in the image
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 4 images
Knowledge Booster
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.Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage