Skip to content

mihnearafael/rock_paper_scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors

A browser-based Rock Paper Scissors game with an interactive UI. Play against the computer in a best-of-5 match!

Features

  • Click-based gameplay with Rock, Paper, and Scissors buttons
  • Real-time score tracking for both player and computer
  • Best-of-5 format (first to 5 wins)
  • Automatic game reset after a winner is declared
  • Visual feedback for game results

How to Play

  1. Open frontend/index.html in your web browser
  2. Click one of the three buttons: Rock, Paper, or Scissors
  3. The computer randomly selects its choice
  4. The result is displayed along with updated scores
  5. First to reach 5 points wins the game
  6. The game automatically resets after 3 seconds

Game Rules

You Pick Beats
Rock Scissors
Scissors Paper
Paper Rock

Ties award no points.

Getting Started

Prerequisites

A modern web browser (Chrome, Firefox, Safari, Edge)

Installation

git clone https://github.com/yourusername/rock_paper_scissors.git
cd rock_paper_scissors

Open frontend/index.html in your browser.

Project Structure

rock_paper_scissors/
├── frontend/
│   ├── index.html    # Main HTML file
│   ├── app.js        # Game logic
│   └── styles.css    # Styling
└── README.md

Technologies

  • HTML5
  • CSS3
  • Vanilla JavaScript (ES6+)

License

Open source for educational purposes.

Releases

Packages

Contributors

Languages