A browser-based Rock Paper Scissors game with an interactive UI. Play against the computer in a best-of-5 match!
- 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
- Open
frontend/index.htmlin your web browser - Click one of the three buttons: Rock, Paper, or Scissors
- The computer randomly selects its choice
- The result is displayed along with updated scores
- First to reach 5 points wins the game
- The game automatically resets after 3 seconds
| You Pick | Beats |
|---|---|
| Rock | Scissors |
| Scissors | Paper |
| Paper | Rock |
Ties award no points.
A modern web browser (Chrome, Firefox, Safari, Edge)
git clone https://github.com/yourusername/rock_paper_scissors.git
cd rock_paper_scissorsOpen frontend/index.html in your browser.
rock_paper_scissors/
├── frontend/
│ ├── index.html # Main HTML file
│ ├── app.js # Game logic
│ └── styles.css # Styling
└── README.md
- HTML5
- CSS3
- Vanilla JavaScript (ES6+)
Open source for educational purposes.