Welcome to the Rock-Paper-Scissors game! This is a simple web-based game where you can play the classic Rock-Paper-Scissors against the computer.
The Rock-Paper-Scissors game is a fun and quick way to challenge yourself against the computer. It's a game of chance and strategy where each player simultaneously forms one of three shapes with an outstretched hand. The possible outcomes are: rock beats scissors, scissors beats paper, and paper beats rock.
When you're ready to play, just head over to the live demo and start having fun!
When you visit the live demo link, you'll be presented with buttons labeled 'Rock,' 'Paper,' and 'Scissors.' Click on the button representing your choice, and the computer will randomly select its move. The game will then display the selections, announce the winner of the round, and keep track of the score. The first player to reach a score of 5 wins the game.
The game is built using HTML, CSS, and JavaScript. The HTML file contains the structure of the game, including buttons for the player's choices and placeholders for displaying the game state. The JavaScript file contains the logic for generating the computer's choice, determining the winner of each round, and updating the score.
- Play Rock-Paper-Scissors against the computer.
- Real-time display of selections, results, and scores.
- Automatic determination of the winner.
- Interactive buttons for user input.
- Easy-to-understand gameplay and rules.
To run the game locally, follow these steps:
- Clone the repository:
git clone https://github.com/jaizzer/rock-paper-scissors.git
- Navigate to the project directory:
cd rock-paper-scissors
- Open the
index.html
file in your web browser.
Alternatively, you can simply access the live demo to play the game online.
If you'd like to contribute to the project, feel free to fork the repository, make your changes, and submit a pull request. You can also open issues if you find any bugs or have suggestions for improvements.
This project is licensed under the MIT License.