This is our Lab 5 , In this lab I created a game called rock, paper, scissors, or rope. In this game we created if/else statement for javascript that we have learned a couple of days ago, using the statement we had to create 4 differnt situation for 4 different outcome. Using a code called Math.random the computer can decide a random choice from 4 selection. If by the logic of the game the user picks "paper" then computer will give the outcome by a random choice and show which one is the winner. |