Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Description: Your task is to implement the Rock-Paper-Scissors game in Java. You must first display a nice game title and ask the user for their
Description: Your task is to implement the "Rock-Paper-Scissors game in Java. You must first display a nice game title and ask the user for their name. The computer must randomly choose 0, 1 or 2 (0 = Rock; 1 = Paper; 2 = Scissors). The user must be allowed to choose 0, 1 or 2 (0 = Rock; 1 = Paper; 2= Scissors). Your program must display each choice in words (user and computer) as well as the winner. Please ensure that you always display the user's name in a sensible format (proper case). Good coding practices are expected (sensible variable names, indention, comments, etc.). Screenshots: The following screenshot will give you an idea of what the game could look like. Please enter your name: Ron Hello Ron. Welcome to the game. Enter your choice (0=rock, 1=paper, 2-scissors) 0 Ron chose ROCK. Computer chose PAPER. Computer wins
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started