Skip to content
Submitted over 3 years ago

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

animation, sass/scss
LVL 2
Mateusz180
@userMatMik
A solution to the Rock, Paper, Scissors game challenge

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

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