https://github.com/shivankushsingh09/rock-paper-scissor-game
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.
https://github.com/shivankushsingh09/rock-paper-scissor-game
basic-game-logic basic-python-project console-game game-development interactive-python python-game python-programming python-project rock-paper-scissor simple-python-game
Last synced: 4 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/shivankushsingh09/rock-paper-scissor-game
- Owner: shivankushsingh09
- License: mit
- Created: 2024-07-18T17:12:07.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-26T04:22:00.000Z (11 months ago)
- Last Synced: 2025-01-16T07:55:40.524Z (5 months ago)
- Topics: basic-game-logic, basic-python-project, console-game, game-development, interactive-python, python-game, python-programming, python-project, rock-paper-scissor, simple-python-game
- Language: Python
- Homepage: https://www.w3schools.com/python/
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
README
# 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](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Gameplay](#gameplay)
- [Code Structure](#code-structure)
- [Contributing](#contributing)
- [License](#license)## 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:**
```bash
git clone https://github.com/shivankushsingh09/Rock-Paper-Scissor-Game.git
```2. **Navigate to the project directory:**
```bash
cd Rock-Paper-Scissor-game
```3. Ensure you have Python installed. The game is compatible with Python 3.x. You can download it from python.org.
4. **Run the game:**
```bash
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**
```bash
git checkout -b feature/your-feature
```3. **Make your changes and commit them**
```bash
git commit -am 'Add new feature'
```4. **Push to the branch**
```bash
git push origin feature/your-feature
```5. Create a new Pull Request.
## License
This project is licensed under the MIT License. See the [License](https://github.com/shivankushsingh09/Rock-Paper-Scissor-Game?tab=MIT-1-ov-file) file for details.