Skip to content

Jaizzer/rock-paper-scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rock-Paper-Scissors Game

Welcome to the Rock-Paper-Scissors game! This is a simple web-based game where you can play the classic Rock-Paper-Scissors against the computer.

Play the Game Now

Table of Contents

Introduction

The Rock-Paper-Scissors game is a fun and quick way to challenge yourself against the computer. It's a game of chance and strategy where each player simultaneously forms one of three shapes with an outstretched hand. The possible outcomes are: rock beats scissors, scissors beats paper, and paper beats rock.

When you're ready to play, just head over to the live demo and start having fun!

Gameplay

When you visit the live demo link, you'll be presented with buttons labeled 'Rock,' 'Paper,' and 'Scissors.' Click on the button representing your choice, and the computer will randomly select its move. The game will then display the selections, announce the winner of the round, and keep track of the score. The first player to reach a score of 5 wins the game.

How It Works

The game is built using HTML, CSS, and JavaScript. The HTML file contains the structure of the game, including buttons for the player's choices and placeholders for displaying the game state. The JavaScript file contains the logic for generating the computer's choice, determining the winner of each round, and updating the score.

Features

  • Play Rock-Paper-Scissors against the computer.
  • Real-time display of selections, results, and scores.
  • Automatic determination of the winner.
  • Interactive buttons for user input.
  • Easy-to-understand gameplay and rules.

Getting Started

To run the game locally, follow these steps:

  1. Clone the repository: git clone https://github.com/jaizzer/rock-paper-scissors.git
  2. Navigate to the project directory: cd rock-paper-scissors
  3. Open the index.html file in your web browser.

Alternatively, you can simply access the live demo to play the game online.

Contributing

If you'd like to contribute to the project, feel free to fork the repository, make your changes, and submit a pull request. You can also open issues if you find any bugs or have suggestions for improvements.

License

This project is licensed under the MIT License.