Skip to content

biswarup-naha/Rock-Paper-Scissors-Game-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock, Paper, Scissors Game

This is a simple Rock, Paper, Scissors game implemented in vanilla JavaScript.

How to Play

  1. Open the index.html file in a web browser.
  2. Choose your move (Rock, Paper, or Scissors) by clicking the respective button.
  3. The computer will randomly select its move.
  4. The game will determine the winner and display the result.
  5. Your score (Wins, Losses, Ties) will be updated and stored locally.

Features

  • Play Rock, Paper, Scissors against the computer.
  • Keep track of your wins, losses, and ties.
  • Local storage to persist the score even if you refresh the page.

Game Logic

  • Rock beats Scissors.
  • Scissors beats Paper.
  • Paper beats Rock.

Resetting the Score

To reset the score and start over, click the "Reset Score" button.

Code Structure

  • The game logic is implemented in script.js.
  • Score is stored in local storage for persistent tracking.

Contributions

Contributions are welcome! If you'd like to enhance the game or fix any issues, feel free to submit a pull request.

License

This project is licensed under the MIT License.