Skip to content

nitheeshj/rock-paper-scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors ✊📄✂️

A simple browser-based Rock Paper Scissors game where the user plays against the computer.
The computer generates random moves and the game tracks scores until a winner is decided.

Features

  • User vs Computer gameplay
  • Random computer choice logic
  • Score tracking system
  • Winner announcement after set rounds
  • Reset / Play Again option

Built With

  • HTML
  • CSS
  • JavaScript

Game Logic

  • User selects Rock, Paper, or Scissors
  • Computer generates a random choice
  • Choices are compared using conditional logic
  • Scores update after each round
  • First to reach the score limit wins

What I Learned

  • JavaScript conditionals and functions
  • Random number generation
  • DOM manipulation and event listeners
  • Managing game state and score variables

How to Run Locally

  1. Clone the repository
  2. Open index.html in a browser

Future Improvements

  • Best-of-5 / Best-of-10 mode
  • Animations and sound effects
  • Mobile responsive layout
  • Multiplayer option

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors