Skip to content

This repository contains a web-based Rock-Paper-Scissors game built using HTML, CSS, and JavaScript. The game provides an interactive experience where users can play against a computer opponent.

Notifications You must be signed in to change notification settings

GauravChavan18/Rock_Paper_Scissor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock-Paper-Scissors Game

This repository contains a web-based Rock-Paper-Scissors game built using HTML, CSS, and JavaScript. The game provides an interactive experience where users can play against a computer opponent.

Features

  • Interactive Gameplay: Users can make their choice (Rock, Paper, or Scissors) by clicking on the corresponding images.
  • Score Tracking: The game keeps track of the player's and computer's scores.
  • Game Rules: Clear rules are provided for players to understand how the game works.
  • Visual Representation: Choices are visually represented with icons for a more engaging experience.
  • Play Again Option: After each round, players have the option to play another round without reloading the page.

Screenshot (38) Screenshot (37)

Local Storage

The game utilizes local storage to persistently store the scores of both the player and the computer across different sessions. This means that even if the page is refreshed or the browser is closed, the scores will be retained.

Here's how it works:

  • When a game is played, the scores are updated in real-time on the webpage.
  • Simultaneously, the scores are also stored in the local storage of the browser.
  • Upon refreshing the page or returning to the game later, the scores are retrieved from the local storage and displayed on the scoreboard.

This feature enhances the user experience by allowing them to track their progress over multiple sessions without losing any game data.

About

This repository contains a web-based Rock-Paper-Scissors game built using HTML, CSS, and JavaScript. The game provides an interactive experience where users can play against a computer opponent.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published