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.
-
Go to the Rock, Paper, Scissors! Live GitHub Page.
-
Play the game by selecting an item (Rock, Paper, or Scissors) on each round.
You can select an item by:
- clicking its corresponding button using a pointing device (or touching it on a touchscreen)
-
pressing one of its two corresponding keys on the keyboard:
1orRfor Rock2orPfor Paper3orSfor 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