Skip to content

Devyani1430/Rock_Paper_Scissor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock, Paper, Scissors Game

Overview

This repository contains a simple Rock, Paper, Scissors game built using HTML, CSS, and JavaScript. Players can choose between rock, paper, or scissors and compete against the computer.

Technologies Used

  • HTML: Structure of the game interface
  • CSS: Styling of the game elements
  • JavaScript: Game logic, user interaction, and result determination

Image description

How to Play

  1. Open the index.html file in a web browser.
  2. Click on one of the options: Rock, Paper, or Scissors.
  3. The computer will randomly select an option.
  4. The winner is determined based on the classic Rock, Paper, Scissors rules.

Game Logic

The JavaScript code implements the following logic:

  • Randomly generates a choice for the computer.
  • Compares the player's choice with the computer's choice.
  • Determines the winner based on the game rules.
  • Updates the game interface with the result.

Possible Improvements

  • Implement a scoring system to track wins, losses, and ties.
  • Add a best-of-three or best-of-five game mode.
  • Enhance the user interface with animations or sound effects.

Enjoy playing!

About

Rock, Paper, Scissors game built with HTML, CSS, and JavaScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors