Skip to content

Created rock, paper and scissors game using HTML, CSS and JavaScript.

Notifications You must be signed in to change notification settings

Kriti523/Rock-paper-and-scissors-Game-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors Game

This is a simple web-based implementation of the popular game "Rock Paper Scissors." It is created using HTML, CSS, and JavaScript.

Table of Contents

Game Description

Rock Paper Scissors is a hand game played between two players. Each player simultaneously forms one of three shapes using an outstretched hand: rock (a closed fist), paper (an open hand), or scissors (a fist with the index and middle fingers extended).

The game follows a simple set of rules:

  • Rock beats scissors
  • Scissors beat paper
  • Paper beats rock

The objective is to select a gesture that defeats the gesture chosen by the opponent. The game is often used as a method of selection in a way similar to flipping a coin or drawing straws to randomly select a person for some purpose.

Features

  • Simple and intuitive user interface
  • Real-time gameplay
  • Randomized computer opponent choices
  • Instant win/lose/draw result display

Installation

To use or modify this Rock Paper Scissors game locally, follow these steps:

  1. Clone the repository to your local machine:

    git clone https://github.com/your-username/rock-paper-and-scissors-game.git
  2. Navigate to the project directory:

    cd rock-paper-and-scissors-game
  3. Open the index.html file in your web browser.

That's it! The game should now be up and running on your local machine.

Usage

  • Open the game in your web browser.
  • Choose your gesture by clicking on the corresponding button (rock, paper, or scissors).
  • The computer will randomly select its gesture.
  • The result (win, lose, or draw) will be displayed on the screen.

Contributing

Contributions to this project are welcome. If you find any issues or want to add new features, please feel free to submit a pull request.

  1. Fork the repository.
  2. Create a new branch: git checkout -b my-new-feature.
  3. Make your changes and commit them: git commit -am 'Add some feature'.
  4. Push the branch to your fork: git push origin my-new-feature.
  5. Submit a pull request.

Enjoy playing Rock Paper Scissors! If you have any questions or feedback, please feel free to reach out.

About

Created rock, paper and scissors game using HTML, CSS and JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published