Skip to content

Vanilla Javascript rock, paper, scissors game against computer

Notifications You must be signed in to change notification settings

shinyi-a/rockpaperscissors

Repository files navigation

Rock, paper, scissors (Lapis, Papyrus, Scalpellus)

Rock, paper, scissors is a game played between two players, in this case, the user plays against the computer.

How to play

There are three options for the user to choose, either rock, paper or scissors. There are 3 outcomes from playing the game – the user either win, lose or draw. To win, the rock beats scissors, paper beats rock and scissors beats rock.

Features

  • Three buttons (rock, paper, scissors) for the user to click on the option they want to play with.
  • After selecting an option, a message will be displayed telling the user if they win, lose or draw with the computer.
  • A counter keeps track of how many games the user win, lose or met with a draw with the computer.
  • A reset button clears the counter and resets the game.

Alt Text

About

Vanilla Javascript rock, paper, scissors game against computer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published