Skip to content

riya-kumari023/stone_paper_scissor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Certainly! Here's an example of a README.md file for your rock-paper-scissors project using Python:

Rock-Paper-Scissors Game

This is a simple rock-paper-scissors game implemented in Python. The program allows two players to play the classic game of rock, paper, scissors against each other.

How to Play

  1. Clone this repository to your local machine or download the source code as a ZIP file.

  2. Open a terminal or command prompt and navigate to the project directory.

  3. Run the following command to start the game:

    python rock_paper_scissors.py
    
  4. Each player should input their move by typing either "rock", "paper", or "scissors" and pressing Enter.

  5. The program will determine the winner based on the players' moves and display the result on the screen.

  6. You can continue playing multiple rounds by following steps 4 and 5.

Features

  • The program allows two players to play against each other.
  • Each player can choose their move by inputting "rock", "paper", or "scissors".
  • The program determines the winner based on the players' moves according to the classic rock-paper-scissors rules.
  • The game can be played for multiple rounds without restarting the program.

Example

Here's an example of how the game looks when running:

Welcome to the Rock-Paper-Scissors Game!

Player 1, enter your move: rock
Player 2, enter your move: paper

Player 2 wins! Paper beats rock.

Do you want to play again? (yes/no): yes

Player 1, enter your move: scissors
Player 2, enter your move: scissors

It's a tie! Both players chose scissors.

Do you want to play again? (yes/no): no

Thanks for playing!

License

This project is licensed under the MIT License.

Feel free to modify and distribute the code as per the terms of the license.

Contributing

Contributions are welcome! If you find any issues or want to enhance the game, feel free to create a pull request or open an issue.

Acknowledgements

This project was inspired by the classic game of rock-paper-scissors and serves as a fun and interactive demonstration of Python programming.

Contact

If you have any questions or suggestions, feel free to contact me at your-email@example.com.

Enjoy the game!

About

A simple stone paper and scissors game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages