DEV Community

TateLyman
TateLyman

Posted on

I Coded 12 Classic Games in JavaScript — Snake, 2048, Tic Tac Toe & More

Built 12 classic browser games using vanilla JavaScript and React:

  1. Snake — SVG rendering, wrap-around borders, score tracking
  2. 2048 — Full sliding/merging logic, best score tracking
  3. Tic Tac Toe — Unbeatable AI with minimax algorithm
  4. Rock Paper Scissors — Animated, score tracking
  5. Typing Speed Test — WPM + accuracy, character feedback
  6. Coin Flip — Multiple coins, stats visualization
  7. Dice Roller — D4 through D100
  8. Spin the Wheel — Animated SVG wheel
  9. Would You Rather — Voting percentages
  10. Truth or Dare — 40 prompts
  11. Never Have I Ever — 25 questions
  12. Love Calculator — Name hashing, gradient UI

All run in the browser. No backend. No frameworks (besides React for state).

Play them all at DevTools.run — now at 312 pages.

Top comments (0)