Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

HTML, CSS, JAVASCRIPT

@Josh4324

Desktop design screenshot for the Rock, Paper, Scissors game coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
4advanced
View challenge

Design comparison


SolutionDesign

Community feedback

Hannah 655

@hannah-saurusrex

Posted

Hi there, I just played your rock/paper/scissors game, but it doesn't seem like the shuffle is working. I always get the same "computer picked" result for each option I choose. Here is a great article talking through how to shuffle items in an array :) https://gomakethings.com/how-to-shuffle-an-array-with-vanilla-js/

1

@Josh4324

Posted

Thanks for the feedback, the shuffle is actually working but since it is between two options, it is quite limited. i will also go through the article. Thanks again.

0
Hannah 655

@hannah-saurusrex

Posted

@Josh4324 It should be between three options though, right? You can get a "draw" or "tie" as well. :)

1

@Josh4324

Posted

@hannah-saurusrex Yes,i will add it, i didnt add it initially because it was not part of the specifications. Thanks

0

Please log in to post a comment

Log in with GitHub
Discord logo

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