RockPaperScissors
- 3 Devlogs
- 5 Total hours
Rock paper scissors game
Rock paper scissors game
Hey there,
I added some amazing changes
Things I learnt here:
Mainly I implemented addevenListener in js instead of using onclick in HTML, and I also had a huge logic for the pop-up thingy which is not as easy as it looks but it worked fine and I’m really proud :D
A functionality was added where you can press keys instead of clicking the buttons manually, i changed this by removing onclick attribute on HTML and implementing document.body.eventListener, it really helped and its something new is learnt
I built a dark mode Rock Paper Scissors game from scratch to learn dynamic DOM manipulation, state logic, and browser storage. The single biggest obstacle was deploying to GitHub, where my image assets completely broke on live servers. It turned out to be a case-sensitivity issue—GitHub’s Linux-based servers rejected my lowercase image paths because my JavaScript was passing capitalized strings. I’m really proud of debugging this and fixing it programmatically using the .toLowerCase() method, which successfully synced my script with the directory assets. The code is clean, fully responsive, and keeps your score saved via localStorage even after a page refresh!