Skip to content

Tanishq112005/Rock_Paper_Scissor_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Rock, Paper, Scissors Game ๐Ÿ

A simple, command-line based Rock, Paper, Scissors game written in Python. This project allows a user to play the classic game against a computer opponent, which makes a random choice.


๐Ÿ“œ Description

This is a straightforward implementation of the Rock, Paper, Scissors game. The user plays against the computer through the terminal. The game keeps track of the scores for the user and the computer, and displays a final summary when the user decides to quit.


โœจ Features

  • Interactive Gameplay: Play directly from your terminal.
  • Random Opponent: The computer's choice is randomized in every round, making it unpredictable.
  • Score Tracking: The game keeps a running score for both the user and the computer.
  • Unlimited Rounds: Play as many rounds as you like in one session.
  • Final Score Summary: When you quit, the game displays the total wins for each player and the number of draws.

๐Ÿš€ Getting Started

Prerequisites

  • You need to have Python 3 installed on your system.

How to Run the Game

  1. Save the Python code in a file named game.py (or any other .py file).
  2. Open your terminal or command prompt.
  3. Navigate to the directory where you saved the file.
  4. Run the script using the following command:
    python game.py
  5. You will be prompted to enter Start to begin the game.

๐ŸŽฎ How to Play

  1. After starting the game, the rules will be displayed.
  2. In each round, you will be prompted to enter your choice.
  3. Use the following keys to make your move:
    • r for Rock ๐Ÿชจ
    • p for Paper ๐Ÿ“„
    • s for Scissors โœ‚๏ธ
  4. The computer will make its choice, and the result of the round (win, lose, or draw) will be shown.
  5. To quit the game at any point, simply type stop when prompted for a choice.
  6. Upon quitting, the final scores will be displayed.

Game Rules

The winning rules are as follows:

  • Rock crushes Scissors.
  • Scissors cuts Paper.
  • Paper covers Rock.
  • If both players choose the same, it's a Draw.

About

A simple interactive Rock, Paper, Scissors game built with Python. Key features include playing against a randomized computer opponent, scorekeeping for multiple rounds, and a simple command-line interface for user input

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages