Xerobit

Rock Paper Scissors: Play Against the Computer

Pick rock, paper or scissors to play a round of rock paper scissors against the computer. The result appears instantly, and your running score is tracked at the bottom. Everything runs in your browser, so nothing is uploaded anywhere.

Result

  • Result
    You win!
  • You
    Rock ✊
  • Computer
    Scissors ✌️

How to use the rock paper scissors

  1. Select Rock, Paper or Scissors from the dropdown menu.
  2. Click the Play button to throw your move.
  3. The computer picks its move randomly using a secure generator.
  4. Read the result and check the running score below the outcome.

How the winner is decided

Rock paper scissors follows three simple rules that form a cycle. Rock crushes scissors, scissors cut paper, and paper covers rock. If both players choose the same item, the round is a tie.

In this tool the computer selects its move using crypto.getRandomValues, which provides a uniform distribution across the three options. That means each choice has exactly a one-third chance of appearing, preventing any predictable pattern you could exploit. Because the selection happens after you click Play, the computer cannot react to your input. This guarantees a fair matchup every single time you throw a hand.

Quick reference table

The table below shows every possible matchup and who wins. Use it to double-check results or settle disputes when playing offline with friends.

You pickComputer picksOutcome
RockRockTie
RockPaperComputer wins
RockScissorsYou win
PaperRockYou win
PaperPaperTie
PaperScissorsComputer wins
ScissorsRockComputer wins
ScissorsPaperYou win
ScissorsScissorsTie

There are nine total combinations. Three end in a tie, three give you the win, and three give the computer the win. This symmetry is what makes the game perfectly balanced when both sides play randomly.

Probability and strategy

Against a truly random opponent, no strategy can beat the base probability. Each round gives you a 33.3% chance to win, a 33.3% chance to lose and a 33.3% chance to tie. Over many rounds your win rate will converge toward one third.

Human players are not perfectly random. Studies show people tend to repeat a winning move slightly more often than chance predicts, and switch after a loss. In casual play you might notice these patterns, but against this computer opponent the moves are generated without bias, so pattern-based strategies offer no advantage. If you want to test your luck against pure randomness, tools like the random number generator use the same underlying cryptographic source.

History of the game

Rock paper scissors originated in China during the Han dynasty (206 BC to 220 AD) as a hand game called shoushiling. It spread to Japan by the 17th century, where it became known as jan-ken. The modern Western version gained popularity in the 20th century as a quick, equipment-free way to make decisions.

The game belongs to a family of non-transitive games, meaning there is no single best choice. This property makes it useful beyond recreation. Biologists use it to model population dynamics among species like side-blotched lizards, where three mating strategies cycle in dominance just like rock, paper and scissors. Computer scientists study it in game theory courses to illustrate Nash equilibria in zero-sum games.

Common mistakes to avoid

When playing rock paper scissors casually, people often introduce unconscious biases. Throwing rock on the first round is statistically the most common opening move among beginners. Experienced players know this and may open with paper more frequently to catch them off guard.

Another mistake is playing too slowly or hesitating, which can lead to late throws in physical games. In digital play like this tool, timing is irrelevant because the computer generates its move only after you commit yours, ensuring fairness. Some players also try to find patterns in computer-generated sequences, but cryptographic randomness does not produce exploitable streaks. Each round is an independent event, much like flipping a coin or rolling dice.

Worked examples

Each result below was produced by the same code the tool runs, so you can check your own numbers against them.

ExampleInputResult
Throw rockYour move: rockResult: You win!; You: Rock ✊; Computer: Scissors ✌️
Throw paperYour move: paperResult: Computer wins!; You: Paper ✋; Computer: Scissors ✌️
Throw scissorsYour move: scissorsResult: It's a tie!; You: Scissors ✌️; Computer: Scissors ✌️

FAQ

Is the computer's move truly random?

Yes. The computer uses the Web Crypto API to generate its choice, which produces uniformly distributed values rather than predictable pseudo-random numbers.

Can I play rock paper scissors on my phone?

Absolutely. The interface works on any screen size and requires no app installation.

What happens if we tie?

A tie is recorded in the score. You can click Play again immediately to start the next round.

Does the computer remember my previous choices?

No. Each round is independent. The computer does not analyze your history or adapt its strategy.

Are there extended versions with more moves?

Variants like Rock Paper Scissors Lizard Spock add two extra moves to reduce tie frequency, but the classic three-move version remains the standard worldwide.

Is my data sent to a server?

No. All logic runs locally in your browser. Your choices and scores never leave your device.