This Rock-Paper-Scissors game is a fully functional web-based project created using the core front-end technologies: HTML, CSS, and JavaScript. The interface is user-friendly, allowing players to click on rock, paper, or scissors to make their move, while the computer randomly generates its own choice. JavaScript drives the game logic, compares outcomes, updates scores dynamically, and displays the results in real time. CSS is used to style the buttons, layout, and text for a clean, visually appealing, and responsive design across devices.
No followers yet
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
I added the score in local storage, so it can be efficiently saved in the game. Also, restructured and formatted the code.
I added an alert message popup to be issued when the score has to be updated. Also made an object to keep track of wins, losses and ties.
I just worked on the javascript code which applies all the logic and math of the game. I used functions and parameters to do it.