salil-01 / Rock-Paper-Scissor-Game

CLI based rock, paper and scissor game implemented with the help of python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rock-Paper-Scissors Game

This is a command-line interface (CLI) implementation of the classic Rock-Paper-Scissors game in Python. The game allows two players to compete against each other: one player is the user, and the other player is the computer.

Rules

The rules for winning a single round are as follows:

  • Rock beats Scissors (Rock crushes Scissors)
  • Scissors beats Paper (Scissors cut Paper)
  • Paper beats Rock (Paper covers Rock)

Features

  • Play against the computer in an infinite loop until the user decides to quit.
  • User can choose their move (rock, paper, or scissors) using a command-line prompt.
  • The computer's move is randomly generated.
  • The game keeps track of the overall score and displays it after each round.
  • The user can quit the game at any time, and the overall winner is determined based on the score.

Getting Started

Prerequisites

  • Python 3.x

Running the Game

  1. Clone the repository:
git clone https://github.com/salil-01/Rock-Paper-Scissor-Game.git
  1. Navigate to the project directory:
cd Rock-Paper-Scissor-Game
  1. Run the game:
python main.py
  1. Follow the instructions in the command-line interface to play the game.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

About

CLI based rock, paper and scissor game implemented with the help of python.


Languages

Language:Python 100.0%