Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Rock, Paper, Scissor Game

bootstrap
Han•520
@GamerSubhan
A solution to the Rock, Paper, Scissors game challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I'm proud that, I didn't use any external resources to complete this challenge. I finished this game in a short period of time with my knowledge in programming.

What challenges did you encounter, and how did you overcome them?

Here's an improved and fixed version of your text, making it clearer and more structured:

Challenges I faced:

1.Implementing a system where the computer generates random icons to compete against the player. 2.Developing the logic to determine how the player wins or loses. 3.Creating a ripple effect to indicate the winner.

My solutions:

1.I wrote a method that generates random icons for the computer every time the player clicks a button. 2.I assigned names to each icon. When these icons are compared, the player either wins or loses based on the game rules. 3.I wrote CSS styling and animation for the ripple effect and triggered it in JavaScript when a player wins.

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 Han'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