Add puzzle hints and per-word descriptions with sources
Hint is revealed on demand below the board while playing. After the game ends, each word's description and source link are listed below the puzzle, and hovering a solved word highlights its entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4a2309b589
commit
b2f8e879ab
7 changed files with 141 additions and 21 deletions
6
build.md
6
build.md
|
|
@ -19,6 +19,8 @@
|
|||
- **"One away..."** message when a guess has 3 of 4 from one group.
|
||||
- Repeat guesses are not counted as mistakes.
|
||||
- **Share results:** copy an emoji grid (🟨🟩🟦🟪 per guess) to clipboard.
|
||||
- **Hint:** optional per-puzzle hint; a "Show hint" button below the board reveals it while playing.
|
||||
- **About the words:** after the game ends, each word's description and source link are listed below the puzzle. Hovering a word in a solved row highlights its description.
|
||||
|
||||
## Pages
|
||||
- `/` — Puzzle of the day: the game whose assigned date is today; if none, the most recent past-dated game.
|
||||
|
|
@ -27,11 +29,11 @@
|
|||
- `/admin` — login, then create / edit / delete games.
|
||||
|
||||
## Editor (admin page)
|
||||
- Fields: title, date (optional, unique), 4 groups × (name, color, 4 words).
|
||||
- Fields: title, date (optional, unique), hint (optional), 4 groups × (name, color, 4 words, each with optional description and source URL).
|
||||
- Validation: exactly 16 words, no duplicates (case-insensitive), every field filled, each color used once.
|
||||
|
||||
## Data model
|
||||
- `games(id, title, date UNIQUE NULL, groups_json, created_at, updated_at)`
|
||||
- `games(id, title, date UNIQUE NULL, hint, groups_json, created_at, updated_at)`; each group in `groups_json` has `details: [{ description, source }]` parallel to `words`.
|
||||
- Answers are never sent to the browser before solved: the client posts guesses to `/api/games/:id/guess` and the server returns correct / one-away / wrong.
|
||||
|
||||
## Out of scope (for now)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue