Skip to content

The Stone Paper Scissors Game lets you choose between stone, paper, and scissors to compete against a computer opponent. It tracks and stores your win count, making it easy to see your performance over time.

Notifications You must be signed in to change notification settings

PoojaDev74/JavaScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 Rock Paper Scissors Game

A fun and interactive Rock-Paper-Scissors web game built using HTML, CSS, and JavaScript. This project provides an engaging user experience with smooth animations, score tracking, and a rules modal — all packed in a visually rich UI.


🎮 Features

  • 🎲 Classic Gameplay — Choose between Rock, Paper, and Scissors.
  • 🧠 Computer AI — The computer makes a random move each round.
  • 🧾 Score Tracking — Player and Computer scores are stored in localStorage.
  • 🎉 Victory Page — When the player wins, a celebratory screen with animated circles and a "Hurray!" message appears.
  • 🔄 Next Round Button — Appears when the player wins a round, allowing the user to continue.
  • 📜 Rules Modal — A "Rules" button on all pages opens a modal showing game rules.
  • 💾 Persistent State — Scores remain intact across sessions via localStorage.

🧪 Tech Stack

  • HTML5
  • CSS3
  • JavaScript (Vanilla)
  • LocalStorage

🚀 Getting Started

  1. Clone the repository
git clone (https://github.com/yourusername/JavaScript.git)
cd rock-paper-scissors
  1. Open index.html in your browser

No build tools needed. It's a pure frontend project.


📌 Notes

  • The game automatically updates the score based on wins/losses.
  • The "Next" button only appears when the player wins a round.
  • The "Rules" button is always accessible and opens a modal with a visual guide.
  • The victory screen includes expanding and fading circles to emphasize celebration.

🙌 Acknowledgements

  • UI animations inspired by modern web games.

  • Icons and assets designed manually and/or taken from royalty-free sources.


🔗 Live Demo

(https://stone-paper-scissor-javascript.netlify.app/)

📬 Contact


🏷️ License

This project is open-source and available under the MIT License.

About

The Stone Paper Scissors Game lets you choose between stone, paper, and scissors to compete against a computer opponent. It tracks and stores your win count, making it easy to see your performance over time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published