Skip to content

A simple and fun web-based implementation of the classic game Rock Paper Scissors. Play against the computer and see if you can outsmart it!

Notifications You must be signed in to change notification settings

marcft/rock-paper-scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors

This is a simple website that allows you to play the classic game of Rock Paper Scissors against the computer. The game is played at the best of 5 and is built using vanilla JavaScript, HTML, and CSS.

Features

  • Play Rock Paper Scissors against the computer.
  • Scoreboard displays the current scores of the player and the computer.
  • Messages indicate the choices made and the winner of each round.
  • Three big buttons with hand emojis represent the options: rock, paper, and scissors.

How to Play

  1. Open the website in a web browser.
  2. Click on one of the three buttons to select your choice: rock, paper, or scissors.
  3. The computer will randomly select an option.
  4. The result of the round will be displayed in a message, indicating the choices made and the winner.
  5. The scoreboard will be updated with the new score.
  6. Repeat steps 2-5 until one player reaches the best of 5 rounds.

Technologies Used

  • JavaScript
  • HTML
  • CSS

Demo

A live demo of the website can be found here.

Installation

To run the website locally, follow these steps:

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

About

A simple and fun web-based implementation of the classic game Rock Paper Scissors. Play against the computer and see if you can outsmart it!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published