Java 5-7: Rock Paper Scissors (Enum, Inheritance, Java OOP)

preview_player
Показать описание
Java Software Solutions
Java Programming Challenge: 5-7 Rock Paper Scissors (Enum, Inheritance, Java OOP)

Design and implement an application that plays the Rock Paper Scissors game against the computer
The program should randomly choose one of the three options, then prompt the user's selection.
At that point, the program reveals both choices and prints a statement indicating if the user won, the computer won or if it is a tie. Continue playing until user chooses to stop, then print the number of wins, losses, and ties.

Learning to code? Follow my Java tutorials for beginners. I do a lot of Java programming challenges and Java projects as part of my homework - every day!
If you are learning to program, nothing beats solving real programming exercises and coding challenges.
So don't forget to subscribe, as I release new programming videos every day!
Рекомендации по теме
Комментарии
Автор

can you upload the codes by any chance please?

nyiaung
Автор

Hey brother, how do you consolidate all those classes onto one main class and recall those methods.

mezirezi
Автор

When requesting user input for "r" "p" or "s", or "n" to quit the game, if the user presses "enter" the program crashes. I assume this is because we are asking for characters (char). How do I fix this, ?

BenzMyBoy
Автор

it works also for me without extending GameItems class

MetallicaeverPL