Skip to content

Here you can play rock paper scissor game with computer, and this project build with only html css and vanilla javascript.

Notifications You must be signed in to change notification settings

Pritamdutta7498/rock-paper-scissor-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rock-paper-scissor-game

Play This Game

The Game Rules is:

Rock beats Scissors,
Scissors beats Paper,
Paper beats Rock.

There are some steps to complete this game:

step-1: making random nunmber for computer move and the algo is

0 - 1/3 = rock
1/3- 2/3 = paper
2/3 - 1/3 = scissor

step-2: making a function where we have to return the computer move for compare with player move;
step-3: making a game function where we have to make condition for player move and compare with computer move, and call it with button;
step-4: setup the scores how many time win and loss, and the updateScores function is setup for update and set the scores to localStorage and get data from there.
step-5: implement the reset button and design the UI.
step-6: Make it responsive and interactive UI.