Design comparison
Community feedback
- @hannah-saurusrexPosted over 4 years ago
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@Josh4324Posted over 4 years agoThanks 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-saurusrexPosted over 4 years ago@Josh4324 It should be between three options though, right? You can get a "draw" or "tie" as well. :)
1@Josh4324Posted over 4 years ago@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 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