Build a Word Scramble Puzzle Game with Hints, Categories and Streaks in HTML
A prompt that produces a single-file word scramble game with themed categories, paid letter hints, streak bonuses, and both typing and tile-tapping controls.
You getone complete HTML file in a single code block, then 3 short ideas to extend it.
The prompt
Act as a senior front-end game developer who builds polished casual word games.
Build Tangle Tiles, a word scramble puzzle with a calm harbor-at-night theme. Embed a curated list of eight words for each of four categories: Kitchen, Weather, Ocean and Music. Each word has a short one-line clue, and no word is longer than 8 letters. Each round shows the clue and the letter count, a row of empty answer slots and a row of scrambled letter tiles. The scramble must never match the answer.
Rules:
- Controls: tap or click a tile to place it in the next empty slot, and tap a filled slot to send its letter back. Players can also type letters. Backspace undoes, Esc clears and ? gives a hint. Include Hint, Shuffle, Clear and Skip buttons.
- Hints lock the next correct letter into place in a teal tile and cost 5 points. Always leave at least one letter unrevealed.
- Scoring: a solved word earns 10 points plus 2 per letter, plus a streak bonus of 5 for each consecutive solve. Skipping resets the streak. A wrong full guess shakes the slots and returns the unlocked letters.
- Show Score, Streak, Best streak and Word x of 8. After the last word, show a summary panel with a Play again button.
- Use a dark navy palette with amber and teal accents, cream tiles and visible focus rings. The layout must fit 360 to 1280px, and the shake and pop animations must be disabled under prefers-reduced-motion.
- Sound: use Web Audio tones that start on the first interaction, at low volume, with a visible mute toggle.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.Example output
Tips and common edits
Why this works
- Embedding the word lists and clues in the file means the game runs offline right away, with no API or extra data to fetch.
- Exact scoring numbers and hint rules leave the model nothing to guess, so the game logic comes out consistent.
- Asking for both typing and tile tapping makes the game playable on phones and desktops in the first version.
Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as tangle-tiles.html and open it in any browser, or run it in the chat's canvas or preview pane.
Common edits
- Swap the four categories for your own topics, such as vocabulary lists for a class or product terms for a team quiz.
- Change the hint cost, the streak bonus or the words per round to make the game easier or harder.
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
Keep exploring
More like this
Build a Color Sequence Memory Game with Synth Tones in One HTML File
A ready-to-paste prompt that builds Echo Garden, a four-pad color-and-shape sequence memory game with Web Audio tones, a strict mode and rising speed.
Build a Reaction Time Tester Game with False-Start Detection in One HTML File
Get a polished reaction time test with random delays, false-start penalties, a five-attempt average and an SVG results chart, all in one HTML file.
Build a Daily Five-Letter Word Guessing Game with Colorblind Mode in One HTML File
A ready-to-paste prompt that produces Quillmark, an original daily five-letter word game with correct duplicate-letter coloring, an on-screen keyboard and a colorblind mode.
Build a Four-Lane Rhythm Tap Game with a Generated Beat in One HTML File
A ready-to-paste prompt that builds a complete four-lane rhythm tap game with a live Web Audio beat, Perfect/Good/Miss timing grades, combo scoring and a results screen.
Build a Garden Caterpillar Snake Game with Swipe and Wrap Mode in HTML
A prompt that produces Leafline, an original snake-style game where a caterpillar eats garden leaves, with swipe controls, buffered turns, wrap mode and a speed slider.
Build a Gnome-Popping Whack-a-Mole Game With Decoys in One HTML File
A ready-to-paste prompt that makes an AI build Gnome Pop Garden, a fast whack-a-mole style tapping game with speed that ramps up, hedgehog decoys that cost points, and number-key controls.