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

Rock, paper, scissors with NuxtJs and lots of box shadows :-p

P
Joshua Briley•415
@somecallmejosh
A solution to the Rock, Paper, Scissors game challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


As I've mentioned in other challenges, I am continuing to use these projects to get more reps in with NuxtJS. Each new project exposes me to a new way to approach something in VueJS and/or Nuxt, giving me an opportunity to dig in to the documentation and learn a new or better way to do something in this environment.

The layout for this project seemed pretty simple when I first looked at it. Interestingly, the layout was more difficult for me than the game logic. Yes, my eyes deceived me. :-) I haven't used CSS grid very much, and this project gave me an opportunity to do that. I’d like to rework this at some point to scale better.

Regarding the buttons:

I took advantage of multiple box shadows to achieve the interesting borders around the rock, paper, and scissor buttons.

A possible refactor?

I let my wife and daughter play this. They enjoyed it. They were wondering what they needed to do to “win.” It may be fun to refactor this game to have a winning score, and an associated view for winning. Perhaps, keeping track of the “house” score would be cool, too. If I do that, I’ll be sure to post the link in the comments.

As always, I welcome any constructive feedback.

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 Joshua Briley'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