9 Copy-Paste Mini-Game Snippets That Actually Play (Wordle, Simon, a 15-Puzzle & More)

Explore 9 fully playable HTML, CSS and JavaScript mini-games, including Wordle, Simon Says, 15-Puzzle, Tic-Tac-Toe, Morse, and a virtual piano.
9 Copy-Paste Mini-Game Snippets That Actually Play (Wordle, Simon, a 15-Puzzle & More)
Most "game" snippets on the web are screenshots — a static mockup of a Wordle board or a piano that doesn't make a sound. These nine are different: every one is a fully playable, self-contained game with real logic underneath, not a decorative shell. The 15-puzzle only ever shuffles into solvable states. The Tic-Tac-Toe opponent actually tries to win and block instead of clicking randomly. The Wordle clone correctly handles repeated letters, which is the single most common bug in every "build a Wordle clone" tutorial. The piano makes real musical notes through the Web Audio API, not a beep. Below: a WPM typing test with live character-diffing, a reaction-time tester built on performance.now() , a Simon Says memory game with async-driven sequence playback, Whack-a-Mole with self-rescheduling randomised timers, a provably-solvable 15-puzzle, a Tic-Tac-Toe opponent with real heuristics, a Wordle-style word guesser with correct duplicate-letter scoring, a Morse code …

About the author

Puneet Sharma is a freelance web developer and the creator of FWD Tools and WebDevPuneet.

Post a Comment