Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 3 years ago

Rock, paper, scissors, lizard, spock - vanilla JS and localStorage

animation, sass/scss
Mateusz•180
@userMatMik
A solution to the Rock, Paper, Scissors game challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


For me this project was mainly focused on creating good user experience with a lot of animations. Thats why I've decided that the whole game board and result screen I will render in JS. For a lot of animations I had to use setTimeout function. I also used localStorage for holding actual score for both games and the game type user is playing. So if user was playing RPSLS, next time he visit site he will start from Rock, Paper, Scissors, Lizard, Spock.

You can change a game type by clicking on logo.

I'm really curious what you think about my solution so let me know in the comments your honest opinnion and what I can improve or change.

Have a good one.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Mateusz's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License