Skip to content

irondavy/sentencle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sentencle

A puzzle editor for 7-word sentence guessing games. Each sentence follows a fixed letter-count pattern (4, 4, 5, 5, 6, 6, 7), and the solver discovers words left to right.

Setup

  1. Create a .env file with your Anthropic API key:
    ANTHROPIC_API_KEY=sk-ant-...
    
  2. Start the server:
    node server.js
    
  3. Open http://localhost:3000

Editor controls

  • + Add Puzzle — adds a blank 7-slot puzzle to the list.
  • Generate 5 with AI — generates 5 new puzzles via Claude, themed around a random topic (e.g. "keys and locks", "smoke and ash").
  • ☆ / ★ — bookmark a puzzle. Use the Bookmarked tab to filter down to just those.
  • — delete a puzzle.

Each word slot has three buttons underneath:

  • + alt — manually add an alternative word for that position.
  • + fill — asks Claude for 5 alternative words that fit that single slot while keeping the rest of the sentence intact.
  • + end — asks Claude for 5 alternative ways to complete the sentence from that position onward, adding alternatives to every slot from there to the end.

Words are validated against the expected letter counts (4, 4, 5, 5, 6, 6, 7) — inputs with the wrong length highlight red. You can drag and drop to swap a word with one of its alternatives or reorder alternatives within a slot.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors