A simple web-based implementation of the classic Rock-Paper-Scissors game. Players compete against the computer to see who can score the most points!
- Interactive Gameplay: Choose between Rock, Paper, or Scissors and see the outcome instantly.
- Dynamic Scoring: Keeps track of both user and computer scores.
- Reset Functionality: Reset scores and start fresh with a single click.
- Responsive Design: Works on all devices with a modern browser.
- HTML: Provides the structure of the web page.
- CSS: Styles the game interface.
- JavaScript: Implements game logic and user interactions.
git clone https://github.com/your-username/rock-paper-scissors.git
cd rock-paper-scissors
Open the index.html
file in your preferred web browser.
- Choose Rock, Paper, or Scissors by clicking the corresponding button.
- The computer will randomly select its choice.
- The result will be displayed, indicating who won the round:
- You win: Your score increases.
- You lose: The computer's score increases.
- Draw: No score changes.
- Reset the game anytime using the Reset Scores button.
rock-paper-scissors/
├── index.html # Main HTML file
├── style.css # CSS for styling the game
├── app.js # JavaScript for game logic
└── README.md # Game documentation
Feel free to modify the game as per your needs:
- Styling: Update
style.css
to customize the look and feel. - Logic: Add more game modes (e.g., "Best of 3") or animations in
app.js
.
- Add sound effects for user interactions.
- Display a history of choices and outcomes.
- Introduce multiplayer functionality.
This project is licensed under the MIT License. Feel free to use, modify, and distribute the code.