Rock Paper Scissors
A legendary battle of wits. Can you maintain the ultimate win streak against the Axonix AI?
You
0
Axonix AI
0
Current Streak
0
Best Streak
0
Your Choice
AI Choice
Match History
No matches yet
Pro Rules
- • **Rock** beats **Scissors**
- • **Paper** beats **Rock**
- • **Scissors** beats **Paper**
Every win adds to your streak. Losing to the AI resets it to zero!
Rock Paper Scissors Guide
A single-player, endless match against the Axonix AI. Each round you commit to rock, paper, or scissors, the AI rolls one of the same three, and the cycle resolves at once: rock beats scissors, scissors beats paper, paper beats rock. No match to win, no round limit, no difficulty setting, so a session ends when you close the tab. What the page tracks instead is a running You-versus-AI score, a current win streak, a best streak that survives a reload, and your last five rounds. The AI's move is generated one second after you click, from a plain random number with no memory of earlier rounds.
The only value this page writes to your device is your best streak, stored under the key rps-best-streak in your browser's localStorage. Scores, match history, and results stay in memory for the current tab, and no account is ever created.
- Pick one of the three large buttons under the arena: Rock, Paper, or Scissors. They are the only input the game takes.
- Your tile locks the instant you click, showing that move's icon and gradient in the 'Your Choice' panel.
- Wait out the one-second reveal. The 'AI Choice' panel on the right greys out, pulses with a rose border, and spins a CPU icon.
- Read the banner under the tiles: YOU WIN! in emerald, AI WINS! in rose, DRAW! in slate. The counters update in the same beat.
- Watch Current Streak in the top row. A win increments it and lights the yellow sparkles icon; a loss or a draw resets it.
- Reset from the Match History card for a clean slate. It zeroes both counters, the streak, and the history, and keeps your Best Streak record.
- The AI is not adaptive. It picks with Math.floor(Math.random() * 3), so every move lands with a flat one-in-three chance and no earlier round affects the next roll.
- Do not try to react faster. The move is rolled one second after your click and the buttons stay disabled through that whole window, so speed buys you nothing.
- Against a uniform opponent the ceiling is one win per three rounds. Mirroring and counter-picking target opponents that adapt; here they only add noise.
- Streaks are luck events. A run of six wins can arrive by chance alone, so treat Best Streak as a record of what happened rather than a measure of skill.
- Winning streaks need variety on your side. If your last four rounds were all Rock, you are waiting on the dice to hand you Scissors.
- Check the history log for your own bias, not for a pattern in the AI. Five rounds is a small sample, and any rhythm you think you see in it is mostly noise.
One click, one locked move
Picking a button writes your move to state immediately and starts a 1000 ms timer. Until it fires the buttons are disabled and the handler returns early, so a double tap produces one round.
The AI rolls a uniform random move
The opponent's choice is Math.floor(Math.random() * CHOICES.length) over three moves, giving each exactly a third of the probability. It keeps no history, never counters your last move, and has no difficulty tier.
Draws reset the streak too
The Pro Rules panel says only a loss resets the streak, but the code sets it back to zero on a draw as well. Only consecutive wins extend a run.
Five rounds of memory
The Match History list keeps the five most recent rounds and drops anything older. Reset Scores only appears once you have completed a round.
- Rock
- Plays rock. Crushes scissors, loses to paper, draws against rock.
- Paper
- Plays paper. Wraps rock, and scissors beat it.
- Scissors
- Plays scissors. Cuts paper, and rock beats it.
- Reset Scores
- Clears both counters, the streak, the revealed moves, the banner, and the history. Your Best Streak record survives.
- Click while revealing
- Does nothing. The buttons carry a disabled attribute for the full one-second window.
- Tab and Enter
- Activates the focused control. The three move buttons and the reset button are native button elements.
- Win
- You +1, current streak +1, and the sparkles icon appears on the streak card.
- Loss
- Axonix AI +1, and the current streak goes back to zero.
- Draw
- Neither side scores, yet the current streak still drops to zero.
- Best streak
- Rewritten to localStorage under the key rps-best-streak only when a win passes the old record.
- Session state
- Scores, streak, and history live in memory. A reload clears them; only the best streak is restored.
Know the ceiling
Against a uniform random opponent the best possible win rate is one third, and no amount of reading or timing changes that. Tactics that work against people gain nothing here, because the AI keeps no habits to mirror.
Keep your own output mixed
Repeating one move hands your win rate to the AI's dice and makes your loss rate swing just as hard. Cycling through all three keeps the long-run result near one win, one loss, and one draw per three rounds.
Read the log, not the animation
The five-round history is the only panel that reflects your behaviour rather than the AI's, so it is where to check your own variety. Read it in batches, because a single round is noise.
Treat streaks as a scoreboard
The Best Streak number records what the dice did, not how well you played. The only lever you control is how many rounds you enter, so many mixed rounds beats a few clever-looking ones.
- Round
- One click on a move button plus its one-second reveal. Rounds are independent and the match never ends.
- Reveal
- The 1000 ms pause between your click and the AI's answer, shown as a greyed-out tile with a pulsing rose border and a spinning CPU icon.
- Draw
- Both sides played the same move. No score changes, but the current streak still drops to zero.
- Streak
- Consecutive wins. A loss or a draw resets it, and the sparkles icon only appears while it is above zero.
- Best streak
- Your longest win run in this browser. It is written to localStorage whenever you beat it and restored on the next page load.
- Uniform random
- How the AI picks: a random index into an array of three moves, giving each move exactly one in three.