Rock Paper Scissors Game vs Computer

Play Rock Paper Scissors against an AI opponent. Track your win/loss record and see your overall statistics.

Runs in your browser. No data leaves your device.

Frequently Asked Questions

How does Rock Paper Scissors work?

When you pick, the computer's choice is determined independently by Math.floor(Math.random() * 3), selecting rock, paper, or scissors with equal probability. The winner is resolved with a lookup object that maps each choice to what it beats. A 600ms delay with a bounce animation reveals the computer's pick, and win/loss/draw tallies are tracked in state.

Does the computer cheat?

No. The computer's choice is made randomly before you select yours. It has no knowledge of your pick and uses a fair random selection every round.

Are my win/loss stats saved?

Yes. Your game statistics are saved in local storage and persist between visits. You can reset them at any time.

What are the rules?

Rock beats scissors, scissors beats paper, paper beats rock. If both players choose the same item, it is a tie. Best played as a quick decision-maker or just for fun.