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.
-
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.
-
style.css:
- Defines the styles for the game elements, including layout, colors, and responsiveness.
- Styles the game title, choices, scoreboards, and message container.
-
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.
To play the Stone Paper Scissors game:
- Open
index.html
in a web browser. - Click on one of the choices (stone, paper, scissors) to make your selection.
- The computer will randomly select its choice.
- The game will determine the winner of the round based on the choices.
- The score will be updated accordingly, and a message will be displayed indicating the outcome of the round.
This Stone Paper Scissors game is developed by Sneha Thange.