Skip to content

flsoller/Rock-Paper-Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rock-Paper-Scissors

TheOdinProject "Rock-Paper-Scissors"

// Realised I did not return a value from fuction "computerPlay". Value was undefined.

// Added game logic. Realised logical or operators in "if statements" need to be put in parentheses.

// Fixed the "playerInput" function. Logical expression was used incorrectly. Old: if (playerChoice === "rock" || "paper" || "scissors" )) New: if (playerChoice === "rock" || playerChoice === "paper" || playerChoice === "scissors" )

playerInput was always returned even if false because second and third string were only evaluated as "true".

// Finished game logic.

// Add basic UI.

About

TheOdinProject "Rock-Paper-Scissors"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published