A classic web-based Rock-Paper-Scissors game built with HTML, CSS, and JavaScript. Challenge your browser and test your luck!
Rock-Paper-Scissors is a simple hand game played between two players. Each player simultaneously forms one of three shapes with an outstretched hand:
- Rock (🪨)
- Paper (📄)
- Scissors (✂️)
The rules are straightforward:
- Rock crushes Scissors.
- Scissors cuts Paper.
- Paper covers Rock.
The game is a tie if both players choose the same shape.
- HTML5 – Structure and semantics.
- CSS3 – Styling and layout.
- JavaScript – Game logic and interactivity.
- Interactive UI: Click to select your choice.
- Real-time Results: Instant feedback on each round.
- Responsive Design: Optimized for both desktop and mobile devices.
- Score Tracking: Keeps count of wins, losses, and ties.
- Clone or download the repository.
- Open
index.htmlin your browser. - Click on Rock, Paper, or Scissors to make your selection.
- View the result and score after each round.
To run the game locally:
git clone https://github.com/nanishat/rock-paper-scissors.git
cd rock-paper-scissors
open index.htmlAlternatively, you can play the game directly in your browser by opening the index.html file.
This project is licensed under the MIT License – see the LICENSE file for details.
Inspired by the classic hand game and built as a personal project to enhance web development skills.