Skip to content

A simple Stone Paper Scissors game implemented in HTML, CSS, and JavaScript. Players can choose between stone, paper, or scissors and compete against the computer. The game keeps track of the score and displays the outcome of each round.

Notifications You must be signed in to change notification settings

SnehaThange17/Stone_paper_scissor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stone Paper Scissors Game

This repository contains files for a simple Rock Paper Scissors game implemented in HTML, CSS, and JavaScript. Players can choose between rock, paper, or scissors, and compete against the computer. The game keeps track of the score and displays the outcome of each round.

Files Included:

  1. index.html:

    • Contains the structure and layout of the game.
    • Displays the game title, choices (stone, paper, scissors), scoreboards for the player and computer, and a message container for displaying game outcomes.
  2. style.css:

    • Defines the styles for the game elements, including layout, colors, and responsiveness.
    • Styles the game title, choices, scoreboards, and message container.
  3. script.js:

    • Implements the functionality of the Stone Paper Scissors game.
    • Handles user input, generates the computer's choice, determines the winner of each round, and updates the score and message container accordingly.
    • Utilizes event listeners for user clicks on the choices and updates the DOM to reflect the game state.

Instructions:

To play the Stone Paper Scissors game:

  1. Open index.html in a web browser.
  2. Click on one of the choices (stone, paper, scissors) to make your selection.
  3. The computer will randomly select its choice.
  4. The game will determine the winner of the round based on the choices.
  5. The score will be updated accordingly, and a message will be displayed indicating the outcome of the round.

Developer:

This Stone Paper Scissors game is developed by Sneha Thange.

UI:

Screenshot 2024-05-05 101123

image

About

A simple Stone Paper Scissors game implemented in HTML, CSS, and JavaScript. Players can choose between stone, paper, or scissors and compete against the computer. The game keeps track of the score and displays the outcome of each round.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published