This is a simple Java program that allows the user to play Rock-Paper-Scissors against the computer. The user enters their choice (1 for ROCK, 2 for PAPER, 3 for SCISSOR), and the computer generates a random choice. The program then determines the winner based on the choices and displays the result.
- Run the program.
- The game options will be displayed, showing the choices for ROCK, PAPER, and SCISSOR.
- Enter your choice by typing the corresponding number and press Enter.
- The program will generate a random choice for the computer.
- The winner of the round will be determined and the result will be displayed.
- You will be prompted if you want to play again.
- Enter 'y' or 'Y' to play again.
- Enter any other character to exit the game.
---------- Enter a number to choose from below --------
1 ---- ROCK
2 ---- PAPER
3 ---- SCISSOR
-------------------------------------------------------
Enter Your Choice: 1
Both chose ROCK
Match Draw!!!
Do you want to play again? (y/n): y
---------- Enter a number to choose from below --------
1 ---- ROCK
2 ---- PAPER
3 ---- SCISSOR
-------------------------------------------------------
Enter Your Choice: 2
Computer : Scissor
You : Paper
You Won!!
Do you want to play again? (y/n): n
Have fun playing Rock-Paper-Scissors against the computer!