A visually engaging, interactive simulation of the classic Rock-Paper-Scissors game, built with React and TypeScript. Watch as rocks, papers, and scissors battle it out in real time!
- Animated simulation of rock, paper, and scissors objects colliding and converting each other
- Responsive canvas and UI for desktop and mobile
- Adjustable starting counts and speed
- Live counters and game-over detection
- Modern, clean UI with Tailwind CSS
- Node.js (v18+ recommended)
- npm or bun
# Clone the repository
git clone https://github.com/harshrajdubey/rock-paper-scissors.git
cd rock-paper-scissors
# Install dependencies
npm install
# or
bun install
npm run dev
# or
bun run dev
Open your browser and go to http://localhost:5173
(or the port shown in your terminal).
The app is deployed at: https://auto-rock-paper-scissors.netlify.app/
You can run this app in a Docker container:
docker build -t rock-paper-scissors .
docker run -p 8080:80 rock-paper-scissors
Then open your browser at http://localhost:8080
src/components/RockPaperScissorsGame.tsx
— Main game componentsrc/pages/Index.tsx
— Entry pagepublic/
— Static assetstailwind.config.ts
,postcss.config.js
— Styling configuration
Contributions are welcome! If you'd like to improve the project, fix bugs, or add features, please follow these steps:
- Fork the repository
- Create a new branch for your feature or bugfix:
git checkout -b my-feature
- Commit your changes
- Push to your fork
- Open a Pull Request (PR) on GitHub
- Please keep PRs focused and well-described
- Add tests or demo instructions if relevant
- Be respectful and constructive in code reviews
If you find a bug or have a feature request, please open an issue.
MIT License
Made with ❤️ by Harsh Raj Dubey and contributors.