A modern, interactive Rock Paper Scissors game built with HTML, CSS, and JavaScript.
- 🎮 Play against the computer - Random AI opponent
- 📊 Track rounds played - See how many games you've played
- 🔄 Reset button - Start fresh anytime
- 🏆 Winner display - Clear indication of who won each round
- 📜 Move history - View your last 20 moves with results
- 🔥 Streak tracker - Track your consecutive wins/losses
- 💾 Auto-save - Your game progress is saved automatically
- 📱 Responsive design - Works perfectly on mobile and desktop
- Open
index.htmlin your web browser - Click on Rock 🪨, Paper 📄, or Scissors ✂️
- Computer makes a random choice
- See the result and track your stats
- Use the Reset button to start a new game
- Rock beats Scissors
- Scissors beats Paper
- Paper beats Rock
- Same choice = Tie
index.html- Main HTML structurestyle.css- Styling and responsive designscript.js- Game logic and state management
- Shows up to 20 recent moves
- Color-coded by result (green=win, red=loss, orange=tie)
- Displays round number, both choices, and outcome
- Tracks consecutive wins (green indicator)
- Tracks consecutive losses (red indicator)
- Resets on ties
- Visible in the stats section
- Game state is saved to browser's localStorage
- Automatically loads when you revisit
- Close and reopen without losing progress
Works on all modern browsers:
- Chrome
- Firefox
- Safari
- Edge
Created by Shubham
Enjoy playing! 🎉