Inspiration
What it does
The user types either rock, paper, or scissors as their choice. When they either enter the 'Enter' key or clicked on the button, the computer opponent have provide their choice. Who ever wins the game gets the point.
How we built it
Using react.js.
Challenges we ran into
I ran to one challenge where the alert was render twice. But I solve that issue by using a useEffect.
What we learned
Having my code modular, and ensure that state management works smoothly.
What's next for Rock, Paper, or Scissors
It would be added a input where the user can decide how many games to play. Also, instead of the user typing their choice, they can instead choose an image. This I think would create a better UI experience. I also want to show the number of games happening. Currently, the user can't see how many games they are playing up to, and I want to change that.
Log in or sign up for Devpost to join the conversation.