Skip to content

alrayyan2157/rock-paper-scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

25 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Rock Paper Scissors Game

A classic Rock Paper Scissors game built with HTML, CSS, and JavaScript. Play against the computer in a first-to-5-points match!

๐ŸŽฎ Game Rules

  • Rock beats Scissors
  • Paper beats Rock
  • Scissors beats Paper
  • If both players choose the same option, it's a draw

The first player to reach 5 points wins the game!

๐Ÿš€ How to Play

  1. Open the game: Open index.html in your web browser
  2. Start the game: Click the Play button
  3. Make your choice: Click Rock, Paper, or Scissors
  4. Track the score: The scoreboard updates after each round
  5. Win or lose: The first to 5 points wins โ€” then click Play Again to restart

๐ŸŽฏ Features

  • Simple, click-to-play interface โ€” no console required
  • Score tracking for both human and computer
  • Round-by-round result messages
  • Automatic win detection at 5 points
  • Play Again option to reset and restart

๐Ÿ–ฅ๏ธ Live Preview

Play it directly at: Live Demo

๐Ÿ“ Project Structure

rock-paper-scissors/
โ”œโ”€โ”€ index.html      # Game layout and structure
โ”œโ”€โ”€ script.js       # Game logic
โ”œโ”€โ”€ styles.css      # Styling
โ””โ”€โ”€ README.md       # This file

๐ŸŒฟ Branches

Branch Description
main Original version of the game
rps-claude-ui Alternative UI style generated with the help of Claude AI

Check out the rps-claude-ui branch for a different visual experience built using Claude AI!

๐Ÿ› ๏ธ Technologies Used

  • HTML5
  • CSS3
  • JavaScript (ES6+)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors