Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.63 KB

ReadMe.md

File metadata and controls

61 lines (44 loc) · 1.63 KB
# Rock, Paper, Scissors Game

This is a simple command-line game of Rock, Paper, Scissors in Python, where the user competes against the computer. The computer randomly chooses one of the three options, and the user inputs their choice. The game continues until the user decides to stop.

## Features

- **Random Computer Choice**: The computer randomly selects from "rock", "paper", or "scissors".
- **User Input**: The user inputs their choice.
- **Game Logic**: 
  - Win, lose, or tie outcomes based on the rules of Rock, Paper, Scissors.
- **Replay Option**: The user is prompted to replay after each round.

## Installation

1. Clone the repository:
    ```bash
    git clone https://github.com/your-username/rock-paper-scissors.git
    ```

2. Navigate to the project directory:
    ```bash
    cd rock-paper-scissors
    ```

## How to Run

1. Run the script:
    ```bash
    python game.py
    ```

2. Enter your choice when prompted:
    - `rock`
    - `paper`
    - `scissors`

3. The game will compare your input with the computer's choice and display the result:
    - **Tie**: If both user and computer choose the same option.
    - **User Wins**: If the user’s choice beats the computer’s choice.
    - **Computer Wins**: If the computer’s choice beats the user’s choice.

4. After each round, you will be asked if you want to replay:
    - Enter `y` or `Y` to replay.
    - Enter `n` to exit the game.

## Example

Enter choice(rock, paper, scissors): rock Computer choosed: scissors You won! Want to replay? (y/n): y


## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.