This is a web-based implementation of the classic game Rock Paper Scissors, created using JavaScript and styled with CSS where the user can play against a computer and the score is saved and tallied.
When playing against the computer, the user selects their move by clicking on the corresponding button for rock, paper, or scissors. The computer's move is then generated randomly.
The game then determines the winner based on the following rules:
Rock beats scissors Scissors beats paper Paper beats rock The game keeps track of the score, displaying the number of wins, losses, and ties for each player.
index.html - the main HTML file for the game script.js - the JavaScript code for the game logic styles.css - the CSS file for styling the game interface Getting Started To play the game, simply open the index.html file in a web browser.
- JavaScript - programming language used for game logic
- CSS - styling language used for game interface