Rock, paper, scissors, lizard, spock - vanilla JS and localStorage
Design comparison
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.
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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