Skip to content

I have developed a Rock Paper Scissors game using HTML, CSS, and JavaScript. The complete game logic is implemented in JavaScript

Notifications You must be signed in to change notification settings

sudhanshu25012002/stone-paper-scissor-JavaScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors Game

Welcome to the Rock Paper Scissors Game repository! In this project, I've created a simple yet fun Rock Paper Scissors game using HTML, CSS, and JavaScript. The game allows users to play against the computer, keeping track of the score and updating the result based on user and computer choices.

Description

In this repository, I have developed a Rock Paper Scissors game using HTML, CSS, and JavaScript. The complete game logic is implemented in JavaScript, which includes:

  • Showing the game score.
  • Changing the result based on user choice input using addEventListener.
  • Generating computer choice using Math.random().
  • Handling various other game functionalities.

Features

  • User can select Rock, Paper, or Scissors.
  • Computer makes a random choice.
  • The result is displayed based on the user and computer choices.
  • The score is updated and displayed dynamically.

Screenshots

Here are some screenshots of the game for better understanding:

Game Interface

Game Interface

Computer Wins

User Wins

Tie

Computer Wins

User Wins

Tie

How to Play

  1. Open index.html in your browser.
  2. Choose Rock, Paper, or Scissors by clicking on the respective icon.
  3. The computer will make its choice.
  4. The result will be displayed along with the updated score.

Installation

To run this game locally:

  1. Clone the repository:
    git clone https://github.com/sudhanshu25012002/stone-paper-scissor-JavaScript.git

About

I have developed a Rock Paper Scissors game using HTML, CSS, and JavaScript. The complete game logic is implemented in JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •