A real-time PvP Rock Paper Scissors game built with React + Firebase Realtime Database.
- 🔴 Live multiplayer via Firebase (no page refresh needed)
- 🔑 Room code system — share code with a friend to join
- 🏆 Live scoreboard across multiple rounds
- 🎨 Neon arcade UI design
npm install
- Go to https://console.firebase.google.com
- Create a new project
- Enable Realtime Database (test mode)
- Go to Project Settings → Web App → copy config
Copy .env.example to .env and fill in your Firebase config:
cp .env.example .env
npm start
npm install -g vercel vercel
- Player 1 clicks Create Room → shares the code
- Player 2 clicks Join Room → enters the code
- Both players pick Rock, Paper, or Scissors
- Choices reveal simultaneously
- Host advances to next round
- React 18
- Firebase Realtime Database
- CSS3 (custom neon arcade theme)
- ✨ Responsive, intuitive UI
- 🎲 Randomized computer moves
- 📊 Live score updates
- 🚦 Clear result messages
- Clone the repo:
[git clone https://github.com/suyXcode/RockPaperScissors.git](https://github.com/suyXcode/rock-paper-scissors.git)- Or download as ZIP and extract it.
- 👉 Simply open index.html in your browser (Chrome/Firefox/Edge):
- Click on Rock, Paper, or Scissors.
- Watch the computer’s choice and see the result.
- Scores update automatically!
- Want to understand how Rock-Paper-Scissors logic works? It’s a classic decision-making game
- where:
- ✔️ Rock beats Scissors
- ✔️ Scissors beats Paper
- ✔️ Paper beats Rock
-
Contributions are warmly welcomed! If you want to add features (like animations, sound, difficulty levels, etc.):
- Fork the repo 👇
- Create a branch: git checkout -b feature/my-feature
- Make your changes & commit: git commit -m "Add some feature"
- Push: git push origin feature/my-feature
- Create a Pull Request ✔️
Suyash Singh
🎓 B.Tech CSE
💡 Data Science | Machine Learning | Web Development
🚀 Passionate about building practical and scalable applications