Welcome to the Rock-Paper-Scissors game! This is a classic hand game that has been brought to life using HTML, Tailwind CSS, and JavaScript. Test your luck and strategy against the computer in this simple yet addictive game. Can you beat the computer and reach the winning score?
- Interactive UI: Beautiful and responsive design powered by Tailwind CSS.
- Smooth Animations: Enjoy smooth transitions and hover effects for an engaging experience.
- Dynamic Scoring: The game keeps track of scores, updating the interface based on the outcomes.
- Winning Logic: The game announces a winner once a player reaches a set score.
- Real-time Computer Moves: The computerโs move is generated randomly, making the game unpredictable and fun!
- Choose Your Move: Click on the Rock (๐), Paper (โ), or Scissors (โ๏ธ) button to make your move.
- Computerโs Move: The computer will automatically choose its move.
- Scoring:
- Rock beats Scissors
- Scissors beat Paper
- Paper beats Rock
- The game will declare a tie if both choose the same move.
- Winning the Game: The first player to reach the winning score (default is 5) wins the match.
- index.html: The main HTML file containing the structure of the game.
- app.js: The JavaScript file containing the logic for the game.
- tailwind.css: Tailwind CSS is used for styling the UI components.
- HTML5
- Tailwind CSS
- JavaScript (ES6+)
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
- Fork the repository.
- Create a new branch (
git checkout -b feature-name
). - Make your changes and commit them (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-name
). - Create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.