Rock Paper Scissors
Play rock paper scissors online against the computer with multiple difficulty levels, statistics tracking, and game history.
Updated
What is the Rock Paper Scissors?
Rock Paper Scissors is the classic hand game brought to your browser with intelligent AI opponents, detailed statistics, and persistent game history. Whether you want a quick distraction or a serious test of strategy against adaptive computer players, this tool delivers a polished, feature-complete experience.
Unlike basic implementations that offer only random outcomes, this version features four distinct difficulty levels ranging from Easy (where the computer occasionally makes mistakes in your favor) to Impossible (where the computer always counters your move). The Hard mode employs genuine pattern detection, analyzing your previous moves to predict and counter your tendencies.
Every round is tracked automatically. Your win rate, current streak, best streak, and complete game history persist between sessions using local storage, allowing you to build meaningful statistics over time. The clean, responsive interface works seamlessly on desktop and mobile devices.
Perfect for settling decisions, testing probability intuition, or simply passing time with a timeless game.
How it works
Game Rules
Rock Paper Scissors follows the standard rules: Rock crushes Scissors, Scissors cuts Paper, and Paper covers Rock. Identical moves result in a tie.
Difficulty Levels
The computer opponent adapts based on your selected difficulty:
| Difficulty | Behavior |
|---|---|
| Easy | Mostly random with a 40% chance to select a losing move against your recent patterns |
| Normal | Purely random selection with equal probability for all three moves |
| Hard | Analyzes your last 3+ moves to detect patterns and counters your predicted next move |
| Impossible | Always selects the move that defeats yours (useful for testing or demonstrations) |
Pattern Detection (Hard Mode)
The Hard AI maintains frequency tables of your move transitions. If you played Rock followed by Paper multiple times, the AI recognizes this pattern and prepares Scissors when you play Rock again.
Statistics Calculation
- Win Rate:
(Wins / Total Rounds) × 100, rounded to nearest integer - Current Streak: Consecutive wins since last loss or tie
- Best Streak: Highest consecutive win count in session history
- History: Complete chronological log of all rounds with timestamps
Data Persistence
Game state saves automatically to browser local storage after each round. Clear your history anytime with the Reset All button, or remove individual rounds with Undo Last.
Keyboard Accessibility
All move buttons are fully keyboard accessible. Use Tab to navigate and Enter or Space to select your move.
Examples
Quick casual game
Play a few rounds on Normal difficulty to test your luck against fair random computer moves.
Challenge hard mode
Test your pattern recognition against the Hard AI that analyzes your previous moves.
Track improvement
Use the statistics panel to monitor your win rate and streaks over multiple sessions.
Frequently asked questions
Is Rock Paper Scissors purely luck or is there strategy?
Is Rock Paper Scissors purely luck or is there strategy?
While each round has random elements, human players exhibit predictable patterns. Studies show people tend to repeat winning moves and shift away from losing ones. The Hard difficulty exploits these tendencies. Against a truly random opponent, no strategy can improve beyond 33% win rate. Against humans, observing patterns and exploiting psychological biases can provide edges of 10-20%.
How does the Hard AI detect patterns?
How does the Hard AI detect patterns?
The algorithm tracks transition frequencies—what you tend to play after each possible previous move. With sufficient history (3+ rounds), it predicts your most likely next move based on your current streak behavior and counters accordingly. This mimics how expert human players read opponents.
Can I play against another human?
Can I play against another human?
Currently this is a single-player versus computer implementation. For two-player mode, both players can agree on moves privately and reveal simultaneously, using the tool to record results manually.
Why does Impossible mode exist?
Why does Impossible mode exist?
Impossible mode serves two purposes: demonstrating the game's deterministic logic for educational purposes, and providing a humorous "rage quit" difficulty where the computer always wins. It reveals the underlying counter-move system transparently.
Is my game history private?
Is my game history private?
Yes. All data stores locally in your browser using localStorage. No data transmits to any server. Clearing browser data or using private/incognito mode prevents persistence.
What is the optimal strategy against each difficulty?
What is the optimal strategy against each difficulty?
- Easy: Exploit predictable AI mistakes by occasionally repeating winning moves
- Normal: No optimal strategy exists; all moves have equal expected value
- Hard: Use true randomization or deliberately break patterns to prevent prediction
- Impossible: No winning strategy exists; every move loses by design
Can I export my game history?
Can I export my game history?
Yes. Click the Export button to copy a formatted text summary including all statistics and round-by-round results to your clipboard. This works for sharing, analysis, or personal record-keeping.
Why do ties not break my win streak?
Why do ties not break my win streak?
The current implementation preserves streaks through ties, counting only losses as streak terminators. This follows common competitive rule sets where ties are neutral outcomes. Your best streak and current streak reflect consecutive wins without intervening losses.
Related tools
More utilities you might find handy.
.env File Generator
Quickly generate clean, properly-quoted .env files from key-value pairs — no more quoting errors or broken deployments.
.htaccess Redirect Builder
Generate error-free Apache .htaccess code for 301 redirects, HTTPS enforcement, and canonical URL routing.
Absolute Difference Calculator
Calculate the absolute difference between two numbers with percentage comparisons and midpoint analysis.