Skip to content

itsvishalyadav/Rock-Paper-Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🪨 Rock Paper Scissors — Web Game

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!


🎮 Features

  • 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

🧩 How to Play

  1. Choose between Rock, Paper, or Scissors by clicking the buttons.
  2. The computer will make a random choice.
  3. The winner of each round is determined by standard rules:
    • Rock beats Scissors
    • Paper beats Rock
    • Scissors beats Paper
  4. First to 5 points wins the game. An alert will show the winner.

🖥️ Preview

Game Preview


🗂️ Project Structure

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


🚀 Getting Started

To run this project locally:

1. Clone the repository

git clone https://github.com/itsvishalyadav/Rock-Paper-Scissors.git

2. Navigate into the directory

cd Rock-Paper-Scissors

3. Open the game

Double-click index.html or open it with Live Server in VS Code.

💻 Technologies Used

HTML5

CSS3

JavaScript (Vanilla)

💡 Ideas for Improvement

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

📄 License

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! 🎉


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published