This is a simple web application that allows users to play the classic game of Rock Paper Scissors against the computer. It is built as part of The Odin Project's curriculum.
-
Open the RPS Game in your web browser.
-
Click on the buttons to select your choice of either Rock, Paper, or Scissors.
-
The computer will randomly choose its move.
-
The game will determine the winner based on the rules of Rock Paper Scissors:
- Rock beats Scissors
- Paper beats Rock
- Scissors beats Paper
- If both players choose the same move, it's a tie.
-
The result will be displayed on the screen, along with the current score.
-
Play multiple rounds to compete against the computer and try to win!
- HTML
- CSS
- JavaScript
The project follows a simple structure:
-
index.html
: The main HTML file that contains the game board and buttons. -
styles.css
: The CSS file that defines the styles and layout of the game. -
script.js
: The JavaScript file that implements the game logic and handles user interactions.
To run the project locally, follow these steps:
-
Clone the repository:
-
Open the
index.html
file in your web browser. -
Start playing the Rock Paper Scissors game!
Contributions to improve the game or add new features are welcome. If you'd like to contribute, please follow these steps:
-
Fork the repository.
-
Create a new branch for your feature:
-
Make the necessary changes.
-
Commit and push your changes to your forked repository.
-
Create a pull request describing your changes.
This project is licensed under the MIT License.
-
This project was completed as part of The Odin Project's curriculum. You can find more information about the curriculum at theodinproject.com.
-
The design and implementation of this Rock Paper Scissors game were inspired by various online resources and tutorials.