This repository contains two implementations of the game Scissor-Paper-Rock: one implemented using Java Swing and another implemented as a command-line interface (CLI) application.
- SPR.java: Contains the code for the GUI version of Scissor-Paper-Rock implemented using Java Swing.
- Run the
SPR.java
file. - The game window will appear.
- Click on one of the buttons (ROCK, PAPER, or SCISSOR) to make your choice.
- The computer will randomly select its choice.
- The result will be displayed in the "Result" field.
- SPRCLI.java: Contains the code for the command-line interface (CLI) version of Scissor-Paper-Rock.
- Run the
SPRCLI.java
file. - Follow the prompts to enter your choice (rock, paper, or scissors) or type 'quit' to exit.
- The computer will randomly select its choice.
- The result will be displayed in the console.
Enjoy playing Scissor-Paper-Rock!