I wanted to build something fun fast, and interactive — and what’s more universal than Rock Paper Scissors? It’s like the first coding rite of passage. Plus, I needed a break from pretending to understand APIs 24/7 fr
How I Built It I designed the UI using HTML & CSS to keep everything simple but clean. The main logic was done in JavaScript, where I:
Randomly generate the computer’s choice
Compare it with the player’s choice
Update the score live
Display fun result messages
Everything happens instantly without reloading the page — DOM manipulation, baby 😮💨
What I Learned
How to handle user input & button clicks
Writing conditional logic for game rules
Displaying dynamic changes to the UI using JavaScript
Basic game state management (score tracking, reset logic)
That the computer always picks scissors when you least expect it
Challenges
Making sure the logic didn’t bug out and say "You win" when I clearly lost
Keeping the UI responsive so the buttons don’t scatter like villagers in Minecraft
Balancing code simplicity while adding smooth interactions
Outcome A fast and addictive mini-game that proves even simple ideas can create a fun experience — and shows my growth in JavaScript fundamentals.
Log in or sign up for Devpost to join the conversation.