Skip to content

sumitKcs/RockPaperScissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors Game

Rock, paper, and scissors game is a simple fun game in which both the players have to make a rock, paper, or scissors. It has only two possible outcomes a draw, or a win for one player and a loss for the other player. We will be designing the game using JavaScript where a player will be playing against the computer. The player has to choose one option among the rock, paper, and scissors. A random option will be generated from the computer’s side and the result will be displayed on the screen. The game is completely responsive so that it can be played on every device.

How to run the app

  • Since this game is developed in HTML, CSS and vanilla JavaScript, its very easy to run this app.
  1. Fork or downloaad this repository.
  2. Copy the absolute path of the index.html file
  3. Open a browser and paste the copied path to the URL box and hit enter.
  4. Alternatively, open the project folder inside vscode and install extension 'Live Server'.
  5. Click the button saying 'Go Live' at the bottom-right of vscode window.
  6. App will be served at http://127.0.0.1:5500/index.html

How to play

  1. On Start screen, click on button saying play.
  2. Choose between rock, paper or scissor icons displaying on the screen.
  3. After you made your choice, computer will made its choice.
  4. If you win, you will see a message saying you win! and similar messages for other results i.e. draw or lose.

Rules of the rock, paper and scissors game

  1. Rock✊ beats scissors✌️
  2. scissors✌️ beats paper✋ and
  3. paper✋ beats rock✊

Preview of the game

  • On Desktop

    • Start Screen start-screen.png
    • Main Screen main-screen.png
  • On Mobile

    • Start Screen
      drawing
    • Main Screen
      drawing

Deployed App Link

About

Rock Paper Scissor classical game in HTML, CSS and Vanilla JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published