A word puzzle game where players must find words that contain a generated letter sequence in order.
http-server is required for loading data/* files.
- Verify Node.js is installed:
node -v- Run
http-serveron port3000(no install needed):
npx --yes http-server . -p 3000- Open:
Optional: install globally if you prefer:
npm install -g http-server
http-server . -p 3000You can also host the folder on GitHub Pages or any static host.
- The game generates a random letter sequence.
- You must enter a valid word/name that contains all letters in that exact order.
- Score is based on Scrabble letter points plus a length bonus.
- You can submit unlimited guesses.
- Wrong guesses are tracked and show fuzzy-match closeness as a percentage.
Show All Solutionsreveals all valid answers and meanings.- After revealing all solutions, input is locked until
New Game.
- Theme selection:
- English dictionary
- Pokemon names
- Country names
- Capital city names
- Default letter count:
4(selectable2to6) - User preference persistence:
- Selected theme and letter count are stored in
localStorage(letterTrailPrefs:v1)
- Selected theme and letter count are stored in
- Live tile feedback:
- Matching letters turn green as you type
- Submit is enabled only when all letters are matched in order
- Guess-result feedback:
- Input border + icon only (
✓accepted,✕rejected) - Wrong guesses still show fuzzy similarity in the Wrong Words list (
XX% matched)
- Input border + icon only (
- Wrong guess feedback:
- Highest fuzzy similarity to any solution (e.g.
72% matched)
- Highest fuzzy similarity to any solution (e.g.
- Cached datasets in
localStoragewith 7-day TTL - Dictionary fallback validation:
- Uses local 65k dictionary first
- If a dictionary word is not found locally, it checks Dictionary API and caches valid misses
- Responsive layout (desktop + mobile)
- Local static datasets:
data/english_65k.txtdata/countries_un_observers.jsondata/capitals_un_observers.json
- Pokemon names:
- Dictionary meanings fallback:
- Country list uses a sovereign-focused set:
- Includes
independent=true - Excludes
XK(Kosovo) - Includes
PS(Palestine)
- Includes
- This avoids territory-style entries such as Antarctica in country mode.
index.html: game markupstyles.css: game stylesscript.js: game logic and interactionsdata/english_65k.txt: stable local English dictionary (65,000 words)data/countries_un_observers.json: curated country datasetdata/capitals_un_observers.json: curated capital city datasetREADME.md: project documentation
- Opening
index.htmlviafile://can fail because browsers block localfetch()for dataset files. - First load can take longer while datasets are loaded and cached.
- If network requests fail for online checks, use
New Gameto retry.