Rock Paper Scissors Classic is an interactive browser-based game built using HTML, CSS, and JavaScript.
Players compete against a computer opponent by selecting Rock, Paper, or Scissors. The application instantly evaluates the outcome, updates the score, and displays the winner of each round.
This project demonstrates core JavaScript concepts including event handling, conditional logic, random number generation, and DOM manipulation.
https://joshb-hub.github.io/RockPaperScissors/
Challenge the computer and see who reaches the highest score.
Play the classic Rock-Paper-Scissors game directly in your browser.
The computer randomly generates its choice every round.
Monitor:
- Player Score
- Computer Score
- Match Results
Receive immediate updates after every move:
- Win
- Lose
- Draw
Optimized for:
- Desktop
- Tablet
- Mobile Devices
Simple and distraction-free design focused on gameplay.
Wins Against:
Scissors
Loses Against:
Paper
Wins Against:
Rock
Loses Against:
Scissors
Wins Against:
Paper
Loses Against:
Rock
Rock vs Rock
Paper vs Paper
Scissors vs Scissors
Results in a draw.
Player Selects Move
โ
Computer Generates Random Move
โ
Choices Compared
โ
Winner Determined
โ
Score Updated
โ
Result Displayed
User Click Event
โ
JavaScript Event Listener
โ
Random Computer Choice
โ
Game Logic Evaluation
โ
Score Calculation
โ
UI Update
| Technology | Purpose |
|---|---|
| HTML5 | Structure |
| CSS3 | Styling |
| JavaScript | Game Logic |
| DOM Manipulation | Dynamic Updates |
RockPaperScissors/
โ
โโโ index.html
โโโ style.css
โโโ script.js
โ
โโโ Screenshot 2025-04-01 040410.png
โโโ Screenshot 2025-04-01 040512.png
โโโ Screenshot 2025-04-01 040440.png
โโโ Screenshot 2025-04-01 040451.png
git clone https://github.com/your-username/rock-paper-scissors.gitcd rock-paper-scissorsSimply open:
index.html
inside any modern browser.
No installation required.
No external libraries required.
This project demonstrates:
โ JavaScript Fundamentals
โ Event Handling
โ DOM Manipulation
โ Conditional Logic
โ Random Number Generation
โ Dynamic UI Updates
โ Frontend Development Basics
- Game Logic Implementation
- Interactive User Interfaces
- Score Management System
- Real-Time Feedback
- Fast Gameplay
- Simple Navigation
- Responsive Layout
- Lightweight
- Fast Loading
- Cross-Browser Compatible
- Best of 3 / Best of 5 Mode
- Multiplayer Support
- Dark Mode
- Sound Effects
- Animations
- Match History
- Local Storage Score Persistence
- Leaderboard System
This project is available under the MIT License.
This project was developed to strengthen frontend development skills while implementing a fun and interactive game.
It focuses on building confidence with:
- JavaScript Logic
- User Interaction
- Event-Driven Programming
- Dynamic Web Applications



