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
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.
Context & Problem
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
Architecture
Vanilla JavaScript: button click handlers for player choice, Math.random() for computer choice, result determination logic, DOM updates for scores and round history.
Stack
Technical Decisions
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.
Future Work
01Best-of-N game mode with win condition
02Animated choice reveal with suspense delay
03Local multiplayer on same device