Skip to content

lucygossip/Kreativstorm-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kreativstorm Week 3 Assignment

Link

Click Here

Assignment Objectives

  • Create a game of Rock, Paper Scissors
  • Game must have 5 rounds
  • Game must not break

Task List

  • Create computerPlay function

    • Randomly return 'Rock', 'Paper', or 'Scissors'
  • Write playRound function to play a single round of rock, paper scissors

    • Include 2 parameters - playerSelection and computerSelection
    • Return a string that declares the winner of the round
    • Make the playerSelection parameter case-insensitive Case sensitivity
    • Return the results
  • Create game() function

    • Call playRound() inside this function
    • Use loop to make 5 round game
    • Use console.log() to declare winner at the end
  • Use prompt() to get input from the user

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published