A classic Rock Paper Scissors game built with HTML, CSS, and JavaScript. Play against the computer in a first-to-5-points match!
- 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!
- Open the game: Open
index.htmlin your web browser - Start the game: Click the Play button
- Make your choice: Click Rock, Paper, or Scissors
- Track the score: The scoreboard updates after each round
- Win or lose: The first to 5 points wins โ then click Play Again to restart
- 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
Play it directly at: Live Demo
rock-paper-scissors/
โโโ index.html # Game layout and structure
โโโ script.js # Game logic
โโโ styles.css # Styling
โโโ README.md # This file
| 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!
- HTML5
- CSS3
- JavaScript (ES6+)