This is a simple web-based implementation of the popular game "Rock Paper Scissors." It is created using HTML, CSS, and JavaScript.
Rock Paper Scissors is a hand game played between two players. Each player simultaneously forms one of three shapes using an outstretched hand: rock (a closed fist), paper (an open hand), or scissors (a fist with the index and middle fingers extended).
The game follows a simple set of rules:
- Rock beats scissors
- Scissors beat paper
- Paper beats rock
The objective is to select a gesture that defeats the gesture chosen by the opponent. The game is often used as a method of selection in a way similar to flipping a coin or drawing straws to randomly select a person for some purpose.
- Simple and intuitive user interface
- Real-time gameplay
- Randomized computer opponent choices
- Instant win/lose/draw result display
To use or modify this Rock Paper Scissors game locally, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/your-username/rock-paper-and-scissors-game.git
-
Navigate to the project directory:
cd rock-paper-and-scissors-game
-
Open the
index.html
file in your web browser.
That's it! The game should now be up and running on your local machine.
- Open the game in your web browser.
- Choose your gesture by clicking on the corresponding button (rock, paper, or scissors).
- The computer will randomly select its gesture.
- The result (win, lose, or draw) will be displayed on the screen.
Contributions to this project are welcome. If you find any issues or want to add new features, please feel free to submit a pull request.
- Fork the repository.
- Create a new branch:
git checkout -b my-new-feature
. - Make your changes and commit them:
git commit -am 'Add some feature'
. - Push the branch to your fork:
git push origin my-new-feature
. - Submit a pull request.
Enjoy playing Rock Paper Scissors! If you have any questions or feedback, please feel free to reach out.