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

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

One HTML file. Save it and open it in any browser.Open full screen

Example: Tangle Tiles, a themed word scramble with paid hints and streak bonuses.

Pick a category (Kitchen, Weather, Ocean or Music) and read the clue. Then tap the cream tiles or type letters to fill the slots. Tap a filled slot or press Backspace to undo. Hint (or ?) locks the next correct letter in teal for 5 points. Solve words in a row to grow your streak bonus. After 8 words you get a summary panel with your score.

Written by AI from this prompt. Your results will vary.

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 in Simple HTML Games