A simple and interactive Rock, Paper, Scissors game built with HTML, CSS, and JavaScript.
- Enter your name and play against the computer
- Animated SVG icons for Rock, Paper, and Scissors
- Scoreboard tracking wins, losses, and draws
- "Play Again", "Reset Score", and "Quit" options
- Rules dialogue explaining how to play
- Responsive design for desktop and mobile
- Persistent scores using
localStorage
- A modern web browser (Chrome, Firefox, Edge, Safari)
- Live Server extension for VS Code (optional, for local development)
- Clone or download this repository
- Open the project folder in VS Code
- Start Live Server (or open
index.html
directly in your browser)
rock-paper-scissors/
├── index.html
├── styles.css
├── script.js
├── README.md
└── assets/
├── rock.svg
├── paper.svg
├── scissors.svg
└── logo.png
- Enter your name in the input field and click "Play".
- Choose Rock, Paper, or Scissors by clicking the corresponding button.
- The computer will randomly select its choice.
- The winner will be determined based on the rules of the game:
- Rock crushes Scissors
- Scissors cut Paper
- Paper covers Rock
- Your score will be updated on the scoreboard.
- You can click "Play Again" to continue playing, "Reset Score" to reset the scores, or "Quit" to end the game.
The rules dialogue explains the game rules in detail and is accessible by clicking the "Rules" button. It can be closed by clicking the "X" button or anywhere outside the dialogue.
The game is designed to be responsive and should work on both desktop and mobile devices. The layout and controls will adjust based on the screen size.
The game uses localStorage
to persist scores, so your wins, losses, and draws will be saved even if you refresh the page or close the browser.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
- Designed and developed by GiftinTech
- Design inspired by Mark's Rock Paper Scissors Game
This project is licensed under the MIT Licence – see the LICENCE file for details.