Skip to content

A simple browser game of "Rock, Paper, Scissors", created as part of my journey with The Odin Project.

Notifications You must be signed in to change notification settings

ali-aboulsauood/rock-paper-scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rock, Paper, Scissors!

A simple browser game of Rock, Paper, Scissors, written in JavaScript.

This project was created as the third practice project during my journey with The Odin Project, the first and second being Recipes and Landing Page, respectively.

How to play

  1. Go to the Rock, Paper, Scissors! Live GitHub Page.

  2. Play the game by selecting an item (Rock, Paper, or Scissors) on each round.

    You can select an item by:

    1. clicking its corresponding button using a pointing device (or touching it on a touchscreen)
    2. pressing one of its two corresponding keys on the keyboard:
      • 1 or R for Rock
      • 2 or P for Paper
      • 3 or S for Scissors

Rock beats Scissors, which in turn beats Paper, which in turn beats Rock. The player whose item beats that of the other earns one point, while the other's points remain the same. If you and the computer choose the same item, both scores remain the same.

The game ends once a player has earned five (5) points, where that player is declared the winner.

Once the game ends, the Restart button appears. Click the button or press Enter to restart the game.


See also: Rock, Paper, Scissors! Console Game

About

A simple browser game of "Rock, Paper, Scissors", created as part of my journey with The Odin Project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published