This is the Rock, Paper, Scissors game where the user plays against the computer. The user selects one of the three options: Rock, Paper, or Scissors, and the computer randomly selects one. The program then determines the winner based on the traditional rules of the game.
This is an updated version of the original game, improved with better error handling, input validation, and ASCII art for a more interactive experience.
- Level: Intermediate
- Name: Pranjal Sarnaik
- Date: 2024-11-30
- User selects Rock, Paper, or Scissors.
- Computer randomly selects an option.
- Game determines the winner based on the rules.
- Error handling for invalid input.
- Option to play again.
- Clone this repository:
git clone https://github.com/pranjalco/rock-paper-scissors-intermediate.git
- Navigate to the project directory:
cd rock-paper-scissors-intermediate
- Ensure Python 3.9 or later is installed on your system.
- To run the program:
- Using PyCharm: Open the project in PyCharm and run
rock_paper_scissors_version_2.py
. - Using Terminal/Command Prompt: Navigate to the project folder and execute:
python rock_paper_scissors_version_2.py
- By Double-Clicking: You can double-click
rock_paper_scissors_version_2.py
to run it directly, provided Python is set up to execute.py
files on your system.
- Using PyCharm: Open the project in PyCharm and run
- If the console window closes immediately, run the program from the terminal/command prompt or IDE to see the output.