Home/Projects/Rock Paper Scissors
Shipped
Web Development

Rock Paper Scissors

A Rock Paper Scissors game built as an introduction to JavaScript event handling, conditional logic, and DOM updates — the canonical first interactive web project.

recruiter perspective

Rock Paper Scissors game with score tracking and round history

  • ›Interactive game with random computer opponent and win/lose/draw detection
  • ›Score tracking and styled round history
  • ›Clean event handling and DOM state management
Play live
Hiring Summary

A browser Rock Paper Scissors game with score tracking and round history. First interactive JavaScript project — demonstrates event handling, conditional logic, and DOM state management.

Build an interactive Rock Paper Scissors game with computer opponent, score tracking, and round history as a JavaScript fundamentals introduction.

Challenges Addressed
  • Computer choice must be random on each round
  • Score must persist across rounds until page refresh
  • Round history shows last N rounds with win/loss/draw indication
◆Rock Paper ScissorsWEB DEVELOPMENT/visual-placeholder

Vanilla JavaScript: button click handlers for player choice, Math.random() for computer choice, result determination logic, DOM updates for scores and round history.

Stack
JavaScriptHTMLCSS
Decision
Array-based round history with DOM rendering vs. log string
An array of round results that re-renders as styled DOM elements makes it easy to add win/loss/draw color coding and is a better habit for state management than a plain text log.
Tradeoff
Complexity vs. learning value
Chose: Basic implementation with score tracking and history
As a fundamentals project, the goal is to practice core JS patterns. Keeping scope tight maximizes the learning-to-complexity ratio.
01Best-of-N game mode with win condition
02Animated choice reveal with suspense delay
03Local multiplayer on same device