100JSProjects
LearnProjectsExplore all projects
100JS_WORKSPACE/Build · Learn · Repeat
100JSProjects

Practical HTML, CSS, and JavaScript projects designed to help you turn concepts into real skills—one build at a time.

01Explore

./All projects./Learning guides./About./Contact./Privacy

02Resources

./GitHub repository./Support the project

© 2026 100 JS Projects. Built for developers.

TermsCookiesContact
JS//Projects/Rock Paper Scissors Game

Rock Paper Scissors Game

Build a rock paper scissors game with HTML, CSS, and JavaScript while practicing click events and DOM selection.

Intermediate30–45 minutesHTML5CSS3JavaScript
You’ll practice
Click EventsDOM SelectionDOM Content Updates
View Source CodeLive Demo
demo.100jsprojects.com/rock-paper-scissors-game
Final resultRock Paper Scissors Game project previewTry Live Demo
01 — What you’ll build

Rock Paper Scissors Game

Build a rock paper scissors game using HTML, CSS, and JavaScript, then connect the interface to the logic that makes it work. You’ll learn how to handle player interactions, calculate the result, and update the score while getting hands-on practice with click events, DOM selection, and DOM content updates.

02 — Included
  • ✓Randomized results
  • ✓Rock Paper Scissors Game interface
  • ✓Responsive HTML and CSS layout
  • ✓Complete source code and live demo
03 — You’ll practice
  • >Handle user clicks
  • >Select HTML elements from the DOM
  • >Update content on the page
  • >Generate random values
  • >Process data with array methods
  • >Control behavior with conditions

Recommended knowledge: Basic HTML and CSS, JavaScript arrays and array methods, Functions and Math.random, JavaScript variables and number operations.

Complete project files

Build It from the Source Code

This project runs directly in the browser with HTML, CSS, and JavaScript.

  1. 1Create 3 files
  2. →
  3. 2Copy the code
  4. →
  5. 3Run index.html
Before you run it
  • Keep all project files together in the same folder.
Project structure
rock-paper-scissors-game/
├──
├──
└──
Need help setting up the project?

Create project files, install Live Server, and run your first project.

Open beginner guide
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Rock Paper Scissors Game</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <h1>Rock Paper Scissors Game</h1>
    <p>Choose your move:</p>
    <div class="buttons">
        <button id="rock">&#x1F44A;</button>
        <button id="paper">&#x1f590;</button>
        <button id="scissors">&#x270c;</button>
    </div>
    <p id="result"></p>
    <p id="scores">
        Your score: <span id="user-score">0</span>
        Computer score: <span id="computer-score">0</span>
    </p>
    <script src="index.js"></script>
</body>
</html>
JS// Related Projects

Practice with Related Projects

Practice array methods, javaScript calculations, and random values with these related projects.

Feedback UI project preview★Best match
Related: array methodsIntermediate

Feedback UI

Transform collections of data into dynamic page content.

Build a feedback ui →
Number Counter project preview
Related: JavaScript calculations

Number Counter

Turn JavaScript calculations into clear visual results.

Build a number counter →
Random Color Generator project preview
Related: random valuesIntermediate

Random Color Generator

Generate changing values and display a new result each time.

Build a random color generator →
Feedback UI project preview
Related: array methods★Best match

Feedback UI

Transform collections of data into dynamic page content.

Build a feedback ui
Number Counter project preview
Related: JavaScript calculations

Number Counter

Turn JavaScript calculations into clear visual results.

Build a number counter
Random Color Generator project preview
Related: random values

Random Color Generator

Generate changing values and display a new result each time.

Build a random color generator
JS{ }Explore All JavaScript ProjectsBrowse by difficulty or concept.Explore All Projects