Rock Paper Scissors Game Using HTML, CSS and JavaScript with Source Code


Welcome to the exciting world of Rock, Paper, Scissors! This timeless hand game has been reimagined in a digital form that pits you against a cunning computer opponent. Prepare for a battle of strategy, quick thinking, and a dash of luck.

The Rock Paper Scissors game we've created using HTML, CSS, and JavaScript is a classic hand game typically played between two people, but in this case, you've implemented it as a player versus computer game. Let's break down the key components and provide an introduction.

You may also check the Rock Paper Scissor Game on different programming languages; on Python, C, C# and Visual Basic

In this web-based version of Rock, Paper, Scissors, you'll face off against the computer in a series of rounds. Your mission is simple: choose one of the three classic moves—Rock, Paper, or Scissors—by clicking on the corresponding icon. The computer will do the same, selecting its move randomly.

After each round, the game will declare a winner, and you'll see your choice alongside the computer's decision. The scoreboard keeps track of your wins, losses, ties, and the total number of games played. Do you have what it takes to achieve the ultimate winning streak?

Feeling the need for a fresh start? No problem! Simply hit the "Reset" button to wipe the slate clean and begin anew.

So, test your skills, embrace the unpredictability, and embark on a journey of fun and competition in this digital rendition of Rock, Paper, Scissors. Are you ready to make your move and conquer the digital realm? Let the games begin!

Here are the key features of your Rock, Paper, Scissors game:

  1. Player vs. Computer: The game allows players to compete against a computer opponent, making it accessible for solo players looking for a quick challenge.

  2. User-Friendly Interface: The user interface is designed with clarity in mind, featuring easily recognizable icons for Rock, Paper, and Scissors. This makes it simple for players of all ages to understand and play.

  3. Game Logic: The game employs logic to determine the winner of each round based on the classic Rock, Paper, Scissors rules: Rock beats Scissors, Scissors beats Paper, and Paper beats Rock.

  4. Scorekeeping: The game keeps track of the player's performance, recording the number of wins, losses, ties, and the total number of games played. This feature adds a competitive element and motivates players to improve their scores.

  5. Responsive Design: The game's layout is responsive, ensuring a pleasant experience on various devices and screen sizes, from desktops to mobile phones.

  6. Reset Functionality: Players have the option to reset the game at any time, allowing them to start fresh and challenge themselves to achieve a better score.

  7. Interactive Feedback: After each round, the game provides immediate feedback by displaying the player's choice, the computer's choice, and the result of the round. This feedback keeps players engaged and informed about their progress.

  8. Local Storage: The game utilizes local storage to persist the player's score, even if the browser is closed or refreshed. This ensures that players can continue their gaming session without losing their progress.

  9. Custom Styling: The game features custom styling to create an appealing and visually cohesive user interface. Icons and cards add an aesthetic touch to the overall design.

These features combine to create an enjoyable and engaging Rock, Paper, Scissors game that offers entertainment and a bit of friendly competition to players of all skill levels.

Sample Screenshots of the Game:

Pick Your Move Area

Result Area

How to Run?

  • Download the provided source code zip file.
  • Extract the downloaded zip file.
  • Open the html file and you are now ready to go!

Video Demonstration for Installation/Setup


In conclusion, our Rock, Paper, Scissors game brings the timeless hand game to the digital world, offering entertainment, challenge, and a touch of nostalgia. 

We hope you've had a blast making split-second decisions, strategizing against the computer, and striving to improve your score. Whether you're a seasoned Rock, Paper, Scissors pro or new to the game, we're delighted to have shared this digital journey with you.

So, what are you waiting for? Take another shot at outsmarting the computer, challenge your friends, or simply enjoy a quick gaming session whenever the mood strikes. Thank you for choosing our Rock, Paper, Scissors game, and we look forward to your next visit!

That's it! I hope this "Rock Paper Scissors Game Using HTML, CSS and JavaScript" will assist you on your programming journey, providing value to your current and upcoming projects.

For additional tutorials and free source code, explore our websites.

Enjoyyy :>>

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Add new comment