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

Rock-Paper-Scissors Game Using React

accessibility, react
Josue Sifuentes Alvarez•290
@JosueSifuentesA
A solution to the Rock, Paper, Scissors game challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


This is a simple web-based implementation of the classic game of Rock Paper Scissors, built with React. The game allows the user to select one of three options (rock, paper, or scissors) to play against the computer, and displays the outcome of the game (win, lose, or draw) based on the standard game rules.

In addition, the game includes a button to display the game rules, and the user's score is persisted across page refreshes using browser local storage.

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 Josue Sifuentes Alvarez'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 - 2026
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License