Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Rock, Paper, Scissors (Vanilla JS, SCSS)

@kylelambert001

Desktop design screenshot for the Rock, Paper, Scissors game coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
4advanced
View challenge

Design comparison


SolutionDesign

Solution retrospective


Any feedback on this project would be great, I'm here to learn! I decided to incorporate a module pattern through the use of IIFEs (immediately invoked function expressions). I also did this to further my understanding of closures and private functions.

Community feedback

P
Matt Studdert 13,611

@mattstuddert

Posted

Nice work, Kyle! Great to see you practicing with different patterns to deepen your understanding. One enhancement could be that you use localStorage to keep track of the score in the event of the player refreshing their browser.

Keep up the great work!

1

@kylelambert001

Posted

Thanks for the comment, Matt! I'll try to implement that feature tonight, thanks for the positive feedback!

0

@adluders

Posted

Hey, quick question. Is it set so that the house always pick the same as the user? I tried it about four times and the house always pick what I pick and it ends in a draw.

0

@adluders

Posted

@adluders Ha! Nevermind, got a lost on my fifth try LOL! Nice work

0

@kylelambert001

Posted

Haha I checked the code, should be all good! I guess it's like any RPS game, it's only 1 in 3 odds so you sometimes get long rallies! 👍

1

@adluders

Posted

@kylelambert001 lol yes. Long rallies

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord