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.
- Play against the computer.
- Randomized computer choice.
- Display of results with game outcome.
- User-friendly text-based interface.
To run the Rock Paper Scissor game, follow these steps:
-
Clone the repository:
git clone https://github.com/shivankushsingh09/Rock-Paper-Scissor-Game.git
-
Navigate to the project directory:
cd Rock-Paper-Scissor-game
-
Ensure you have Python installed. The game is compatible with Python 3.x. You can download it from python.org.
-
Run the game:
python Rock_Paper_Scissor.py
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.
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.
The project is organized as follows:
- Rock_Paper_Scissor.py: The main Python script containing the game logic.
- README.md: This file.
- 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.
Contributions are welcome! If you'd like to contribute to the project, please follow these steps:
-
Fork the repository.
-
Create a new branch
git checkout -b feature/your-feature
- Make your changes and commit them
git commit -am 'Add new feature'
- Push to the branch
git push origin feature/your-feature
- Create a new Pull Request.
This project is licensed under the MIT License. See the License file for details.