Skip to content

The “Rock, Paper, Scissor” is a fun and interactive command-line game developed using Python. This game is a variation of the classic “Snake, Water, Gun Game” game, where players compete against the computer.

License

Notifications You must be signed in to change notification settings

shivankushsingh09/Rock-Paper-Scissor-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissor Game

A simple implementation of the classic Rock Paper Scissors game in Python. This game allows a user to play against the computer and determines the winner based on the rules of the game.

Table of Contents

Features

  • Play against the computer.
  • Randomized computer choice.
  • Display of results with game outcome.
  • User-friendly text-based interface.

Installation

To run the Rock Paper Scissor game, follow these steps:

  1. Clone the repository:

     git clone https://github.com/shivankushsingh09/Rock-Paper-Scissor-Game.git
  2. Navigate to the project directory:

  cd Rock-Paper-Scissor-game
  1. Ensure you have Python installed. The game is compatible with Python 3.x. You can download it from python.org.

  2. Run the game:

  python Rock_Paper_Scissor.py

Usage

To play the game, follow these instructions:

  • Launch the game by running the rock_paper_scissor.py file.
  • When prompted, enter your choice (Rock, Paper, or Scissors).
  • The computer will make its choice, and the result of the round will be displayed.
  • Continue playing rounds until you decide to exit the game.

Gameplay

The game follows these simple rules:

  • Rock crushes Scissors.

  • Scissors cuts Paper.

  • Paper covers Rock.

    If both the player and the computer choose the same option, the round is a draw.

Code Structure

The project is organized as follows:

  • Rock_Paper_Scissor.py: The main Python script containing the game logic.
  • README.md: This file.

Main File: rock_paper_scissor.py

  • Imports: Imports necessary libraries.
  • Functions: Contains functions for game logic, user input, and computer choice.
  • Game Loop: Manages the flow of the game, including user input and displaying results.

Contributing

Contributions are welcome! If you'd like to contribute to the project, please follow these steps:

  1. Fork the repository.

  2. Create a new branch

  git checkout -b feature/your-feature
  1. Make your changes and commit them
  git commit -am 'Add new feature'
  1. Push to the branch
  git push origin feature/your-feature
  1. Create a new Pull Request.

License

This project is licensed under the MIT License. See the License file for details.

About

The “Rock, Paper, Scissor” is a fun and interactive command-line game developed using Python. This game is a variation of the classic “Snake, Water, Gun Game” game, where players compete against the computer.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages