A simple interactive Rock Paper Scissors game built with HTML, CSS and JavaScript.
The player can choose between rock, paper or scissors while the computer randomly selects its move.
The result of each round is displayed and the score is tracked during the game.
- Player selection using clickable buttons
- Random computer choice
- Round result display (win, lose or draw)
- Score tracking
- Simple and interactive user interface
- The player selects rock, paper, or scissors
- JavaScript generates a random number between 1 and 3
- The number represents the computer's choice
- The result of the round is calculated
- The score is updated and displayed on the screen
- HTML
- CSS
- JavaScript
- Using
addEventListenerfor user interaction - Generating random values with
Math.random() - Implementing simple game logic
- Updating the UI dynamically with JavaScript
- Basic DOM manipulation
- Tracking and updating scores
- Add sound effects
- Add a reset button
- Improve UI styling
Software engineering student at ITS