Skip to content

smahanta1234/Rock-Paper-Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Rock-Paper-Scissors

This is a simple Rock-Paper-Scissors game implemented in Python. The user plays against the computer, which randomly selects an option.

How to Play:

Run the script in a Python environment.

You will be prompted to enter a number from 0, 1 or 2:

1. 0 for Rock
2. 1 for Paper
3. 2 for Scissors

The program will display your choice and the computer’s random choice.

The game determines the winner based on the following rules, I'm sure you're aware:

1. Rock beats Scissors
2. Scissors beat Paper
3. Paper beats Rock
4. If both choices are the same, it's a draw.

Example Output

What do you choose? Type 0 for Rock, 1 for Paper or 2 for Scissors.

1
Your Choice: Paper
    _______
---'   ____)____
          ______)
          _______)
         _______)
---.__________)

Computer choice:

    _______
---'   ____)____
          ______)
       __________)
      (____)
---.__(___)

You Lose!

Requirements

Python 3.x

How to Run

1. Clone or download the script.
2. Run the script using:
    python rock_paper_scissors.py
3. Follow the on-screen prompts.

Improvements & Features you can add to the base code:

1. Input validation to handle invalid choices.
2. Add a loop to allow multiple rounds.
3. Implement a score-tracking system.
4. Enhance visuals with emojis or a GUI.
5. Enjoy the game! 🎮

About

A simple Rock-Paper-Scissors game written in Python. The player competes against the computer, selecting Rock, Paper, or Scissors while the computer randomly chooses its move. The game determines the winner based on classic rules and displays the results with ASCII art. A fun beginner-friendly Python project!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages