Welcome to the Rock Paper Scissors Game repository! In this project, I've created a simple yet fun Rock Paper Scissors game using HTML, CSS, and JavaScript. The game allows users to play against the computer, keeping track of the score and updating the result based on user and computer choices.
In this repository, I have developed a Rock Paper Scissors game using HTML, CSS, and JavaScript. The complete game logic is implemented in JavaScript, which includes:
- Showing the game score.
- Changing the result based on user choice input using
addEventListener
. - Generating computer choice using
Math.random()
. - Handling various other game functionalities.
- User can select Rock, Paper, or Scissors.
- Computer makes a random choice.
- The result is displayed based on the user and computer choices.
- The score is updated and displayed dynamically.
Here are some screenshots of the game for better understanding:
- Open
index.html
in your browser. - Choose Rock, Paper, or Scissors by clicking on the respective icon.
- The computer will make its choice.
- The result will be displayed along with the updated score.
To run this game locally:
- Clone the repository:
git clone https://github.com/sudhanshu25012002/stone-paper-scissor-JavaScript.git