Skip to content

Repository files navigation

๐Ÿชจ๐Ÿ“„โœ‚๏ธ Rock Paper Scissors Classic

The Timeless Battle of Strategy and Luck

HTML CSS JavaScript

๐ŸŽฎ User vs Computer โ€ข Real-Time Scores โ€ข Instant Results


๐ŸŽฏ Overview

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.


๐ŸŒ Live Demo

๐Ÿš€ Play Online

https://joshb-hub.github.io/RockPaperScissors/

Challenge the computer and see who reaches the highest score.


โœจ Features

๐ŸŽฎ Interactive Gameplay

Play the classic Rock-Paper-Scissors game directly in your browser.


๐Ÿค– Computer Opponent

The computer randomly generates its choice every round.


๐Ÿ“Š Live Score Tracking

Monitor:

  • Player Score
  • Computer Score
  • Match Results

โšก Instant Feedback

Receive immediate updates after every move:

  • Win
  • Lose
  • Draw

๐Ÿ“ฑ Responsive Design

Optimized for:

  • Desktop
  • Tablet
  • Mobile Devices

๐ŸŽจ Clean User Interface

Simple and distraction-free design focused on gameplay.


๐Ÿ“ธ Game Preview

๐Ÿค– Computer Victory

Computer Wins


๐Ÿ† Player Victory

User Wins


๐Ÿค Draw Match

Draw


๐ŸŽฏ Live Gameplay

Gameplay


โš”๏ธ Game Rules

๐Ÿชจ Rock

Wins Against:

Scissors

Loses Against:

Paper

๐Ÿ“„ Paper

Wins Against:

Rock

Loses Against:

Scissors

โœ‚๏ธ Scissors

Wins Against:

Paper

Loses Against:

Rock

๐Ÿค Draw Condition

Rock vs Rock
Paper vs Paper
Scissors vs Scissors

Results in a draw.


โš™๏ธ How It Works

Player Selects Move
          โ†“
Computer Generates Random Move
          โ†“
Choices Compared
          โ†“
Winner Determined
          โ†“
Score Updated
          โ†“
Result Displayed

๐Ÿ—๏ธ Application Architecture

User Click Event
        โ†“
JavaScript Event Listener
        โ†“
Random Computer Choice
        โ†“
Game Logic Evaluation
        โ†“
Score Calculation
        โ†“
UI Update

๐Ÿ› ๏ธ Technology Stack

Technology Purpose
HTML5 Structure
CSS3 Styling
JavaScript Game Logic
DOM Manipulation Dynamic Updates

๐Ÿ“‚ Project Structure

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

๐Ÿš€ Getting Started

Clone Repository

git clone https://github.com/your-username/rock-paper-scissors.git

Navigate to Project

cd rock-paper-scissors

Run Application

Simply open:

index.html

inside any modern browser.

No installation required.

No external libraries required.


๐ŸŽ“ Learning Outcomes

This project demonstrates:

โœ… JavaScript Fundamentals

โœ… Event Handling

โœ… DOM Manipulation

โœ… Conditional Logic

โœ… Random Number Generation

โœ… Dynamic UI Updates

โœ… Frontend Development Basics


๐ŸŒŸ Key Highlights

Technical Skills

  • Game Logic Implementation
  • Interactive User Interfaces
  • Score Management System
  • Real-Time Feedback

User Experience

  • Fast Gameplay
  • Simple Navigation
  • Responsive Layout

Performance

  • Lightweight
  • Fast Loading
  • Cross-Browser Compatible

๐Ÿ”ฎ Future Enhancements

  • Best of 3 / Best of 5 Mode
  • Multiplayer Support
  • Dark Mode
  • Sound Effects
  • Animations
  • Match History
  • Local Storage Score Persistence
  • Leaderboard System

๐Ÿ“œ License

This project is available under the MIT License.


๐Ÿ’ก Why This Project?

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

โญ Rock โ€ข Paper โ€ข Scissors โ€ข Repeat

Built with โค๏ธ using HTML, CSS & JavaScript

About

Classic Rock Paper Scissors game built with HTML, CSS, and JavaScript featuring real-time score tracking, computer-generated moves, and responsive gameplay.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages