Skip to content

nanishat/rock-paper-scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock-Paper-Scissors

A classic web-based Rock-Paper-Scissors game built with HTML, CSS, and JavaScript. Challenge your browser and test your luck!

🎮 Game Overview

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.

🔧 Technologies Used

  • HTML5 – Structure and semantics.
  • CSS3 – Styling and layout.
  • JavaScript – Game logic and interactivity.

🚀 Features

  • 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.

⚙️ How to Play

  1. Clone or download the repository.
  2. Open index.html in your browser.
  3. Click on Rock, Paper, or Scissors to make your selection.
  4. View the result and score after each round.

🛠️ Setup Instructions

To run the game locally:

git clone https://github.com/nanishat/rock-paper-scissors.git
cd rock-paper-scissors
open index.html

Alternatively, you can play the game directly in your browser by opening the index.html file.

📄 License

This project is licensed under the MIT License – see the LICENSE file for details.

📢 Acknowledgments

Inspired by the classic hand game and built as a personal project to enhance web development skills.

About

Interactive Rock-Paper-Scissors game showcasing web development fundamentals.

Topics

Resources

License

Stars

Watchers

Forks

Contributors