Build a Word-Chain Ladder Puzzle Game with Hints in One HTML File
Create RungCraft, an offline word-ladder puzzle game with a built-in dictionary graph, BFS shortest-path par, step-by-step hints, and move efficiency ratings.
Text prompt for ChatGPT and Claude
You get: one 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 and puzzle designer. Build RungCraft, an original single-file HTML word-chain ladder puzzle game where players transform a start word into a target word one letter at a time.
Core mechanics and rules:
1. Include a built-in offline dictionary of at least 120 common four-letter English words and construct an adjacency graph on load so every puzzle is pre-validated with a known shortest-path par using breadth-first search.
2. Support both physical keyboard typing and an interactive on-screen letter-slot editor with tap-to-select positions, Submit, Undo, Hint, and New Puzzle buttons.
3. Provide step-by-step hints that reveal the next optimal word along the shortest path from the current word, and display a move efficiency rating when the target word is reached.
4. Use a clean, high-contrast editorial palette with generous spacing, responsive layout from 360px to 1280px, and respect prefers-reduced-motion.
5. Add subtle Web Audio API feedback chimes initialized on the first user interaction with a visible mute toggle. Use no external assets, no localStorage, and no form tags.
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
- Building the word graph and running BFS on load guarantees every generated puzzle is solvable and has an exact par.
- Supporting both physical keyboard input and tappable letter slots makes the puzzle smooth on desktop and mobile.
- Wrapping all state in an IIFE with zero external calls or storage keeps the file sandbox-safe and instant to run.
Paste this prompt into Gemini, ChatGPT, or Claude, save the generated code as an .html file, and open it in any browser—or preview it directly in Canvas or Artifacts.
Common edits
- Expand the built-in word list or add 3-letter and 5-letter difficulty modes.
- Add a daily seed mode or a timer-based speedrun toggle for replayability.
Reuse it: Use in a workflowTurn into a skillAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Build a Neon Circuit-Routing Tile Puzzle Game in One HTML File
Create VoltGrid, a self-contained neon circuit-routing puzzle game with guaranteed solvable levels, par tracking, and Web Audio lock-in clicks.
Build an Orbital Gravity Slingshot Game in a Single HTML File
Create Perihelion, an offline HTML5 canvas arcade game with inverse-square gravity physics, live trajectory previews, and slingshot combo scoring.
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 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
- Build a Match-Three Tile Swapping Puzzle with Cascades and Combo Scoring
- Build a One-Button Fox Endless Runner Game in a Single HTML File
- Build a Paddle and Bricks Game with Power-Ups and Levels in One HTML File
- Build a Reaction Time Tester Game with False-Start Detection in One HTML File
- Build a Sliding Number Puzzle Game with Solvable Shuffles in One HTML File