A fun and simple Rock Paper Scissors game built using HTML, CSS, and JavaScript. Play against the computer and try to reach 5 points before it does!
- Interactive gameplay with real-time scoring
- Responsive UI with a colorful, modern design
- Displays winner when either player reaches 5 points
- Easy to understand and modify
- Choose between Rock, Paper, or Scissors by clicking the buttons.
- The computer will make a random choice.
- The winner of each round is determined by standard rules:
- Rock beats Scissors
- Paper beats Rock
- Scissors beats Paper
- First to 5 points wins the game. An alert will show the winner.
Rock-Paper-Scissors/ │ ├── index.html # Main HTML file ├── style.css # CSS styling for the game ├── script.js # JavaScript logic ├── images/ # Images (icons, background, etc.) └── README.md # Project documentation └── aboutPage.html # About Page HTML file └── aboutPage.css # About page style
To run this project locally:
git clone https://github.com/itsvishalyadav/Rock-Paper-Scissors.git
cd Rock-Paper-Scissors
Double-click index.html or open it with Live Server in VS Code.
HTML5
CSS3
JavaScript (Vanilla)
Add a restart button to reset the game
Include sound effects for win/loss/draw
Add animations to button clicks or results
Implement a scoreboard using localStorage
Improve mobile responsiveness
This project is licensed under the MIT License. Feel free to use and modify it as you like. 🙏 Acknowledgements
Background SVG from Haikei.app
Hand icons from Icons8
Enjoy the game! 🎉
