PuzzleTide

v0.2.1
io.github.catorch/puzzletide Checked 4 days ago Published 4 months ago

Word search, crossword, and sudoku generators, printable PDF worksheets, and verifiable LLM evals.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

eval_check eval check

Grades a JSON answers file against a tasks file produced by eval generate. Verification is by construction: sudoku answers must satisfy sudoku rules and preserve the givens; word search answers must spell the word along a straight line in the grid. Outputs per-task results and a score summary.

ParameterTypeDescription
answersstring | numberJSON array of {id, answer} (required)
tasksstring | numberTasks JSON from eval generate (required)

eval_generate eval generate

Emits a JSON array of puzzle tasks with objectively checkable answers. Types: sudoku (unique-solution puzzles; answers verified against sudoku rules + givens) and wordsearch (answers verified against the grid letters). Deterministic with --seed, so a (seed, type, difficulty, n) tuple names a reproducible benchmark set.

ParameterTypeDescription
difficultystring | numbersudoku: easy|medium|hard|expert; wordsearch: easy|medium|hard (default: medium)
nstring | numberNumber of tasks (default: 10)
outstring | numberWrite tasks JSON to a file instead of stdout
seedstring | numberSeed for a reproducible task set (default: 1)
typestring | numberTask type: sudoku or wordsearch (default: sudoku)

play_daily play daily

Prints a daily sudoku (medium difficulty) that is the same for everyone on the same UTC calendar day. Solve more puzzles at puzzletide.com.

puzzle_crossword_generate crossword generate

Builds an interlocking crossword grid with standard numbering. Words come from --words "WORD: clue; WORD2: clue2", --file (JSON [{word,clue}] or "WORD: clue" lines), or --theme (clues are auto-generated puzzle-style hints). Words that cannot interlock are reported as unplaced. Deterministic with --seed. Online version: https://puzzletide.com/crossword

ParameterTypeDescription
countstring | numberNumber of words to use from the theme/file (default: 10)
filestring | numberJSON array of {word, clue} or "WORD: clue" lines
paperstring | numberPDF paper size: letter or a4 (default: letter)
pdfstring | numberAlso write a printable PDF worksheet to <file>
seedstring | numberSeed for reproducible output (number or word)
sizestring | numberWorking grid size before trimming (5-25) (default: 15)
solutionbooleanPrint the solution instead of the puzzle
solutionPagebooleanOmit the solution page from PDF output — set false to disable
svgstring | numberAlso write an SVG image to <file>
themestring | numberUse a bundled word bank theme (auto-generated clues)
titlestring | numberTitle used in SVG/PDF output
wordsstring | numberSemicolon-separated "WORD: clue" pairs

puzzle_sudoku_generate sudoku generate

Generates a 9x9 sudoku at easy/medium/hard/expert difficulty. Every puzzle is verified to have exactly one solution. Deterministic with --seed. The canonical string format is 81 characters, row by row, "." for empty cells. Online version: https://puzzletide.com/sudoku

ParameterTypeDescription
difficultystring | numberOne of: easy, medium, hard, expert (default: medium)
paperstring | numberPDF paper size: letter or a4 (default: letter)
pdfstring | numberAlso write a printable PDF worksheet to <file>
seedstring | numberSeed for reproducible output (number or word)
solutionbooleanPrint the solution instead of the puzzle
solutionPagebooleanOmit the solution page from PDF output — set false to disable
svgstring | numberAlso write an SVG image to <file>
titlestring | numberTitle used in SVG/PDF output

puzzle_sudoku_solve sudoku solve

Solves a 9x9 sudoku via backtracking. Input: 81 characters row by row with 1-9 for givens and 0/./_ for empty cells (whitespace and separators are ignored), passed inline, via --file, or on stdin. Reports whether the solution is unique. Online version: https://puzzletide.com/sudoku

ParameterTypeDescription
filestring | numberRead the grid from a file
gridstring81-character puzzle string (or "-" for stdin)

puzzle_sudoku_validate sudoku validate

Checks a 9x9 sudoku grid for well-formedness, conflicting givens, solvability, and whether the solution is unique (a proper sudoku has exactly one). Same input formats as sudoku solve. Online version: https://puzzletide.com/sudoku

ParameterTypeDescription
filestring | numberRead the grid from a file
gridstring81-character puzzle string (or "-" for stdin)

puzzle_wordsearch_generate wordsearch generate

Places every word in a letter grid (8 possible directions, difficulty presets) and fills the rest with random letters. Deterministic with --seed. Words come from --words, --file (one per line), or --theme (bundled PuzzleTide word banks). Output: text grid, --json structured data, --svg image, or --pdf printable worksheet with solution page. Online version: https://puzzletide.com/word-search

ParameterTypeDescription
colsstring | numberGrid columns (overrides --size)
countstring | numberNumber of words to use from the theme/file (default: 12)
difficultystring | numberDirection preset: easy (E,S), medium (+diagonals), hard (all 8) (default: medium)
directionsstring | numberExplicit directions (comma-separated from: N,NE,E,SE,S,SW,W,NW)
filestring | numberRead words from a file (one per line or comma-separated)
paperstring | numberPDF paper size: letter or a4 (default: letter)
pdfstring | numberAlso write a printable PDF worksheet to <file>
rowsstring | numberGrid rows (overrides --size)
seedstring | numberSeed for reproducible output (number or word)
sizestring | numberSquare grid size (6-30); computed from words if omitted
solutionbooleanPrint the solution instead of the puzzle
solutionPagebooleanOmit the solution page from PDF output — set false to disable
svgstring | numberAlso write an SVG image to <file>
themestring | numberUse a bundled word bank theme (see: ptide words themes)
titlestring | numberTitle used in SVG/PDF output
wordsstring | numberComma-separated words, e.g. "cat,dog,fish"

words_anagram words anagram

Finds single-word anagrams of the given letters within the bundled word bank sample.

ParameterTypeDescription
letters *stringLetters to rearrange
limitstring | numberMaximum results (default: 50)

words_categories words categories

Lists the bundled PuzzleTide word bank categories (animals, geography, holidays, ...) with their theme counts.

words_list words list

Prints the words of one bundled theme, optionally filtered by length, shuffled by --seed, and limited by --count. Useful as input for generators or other tools.

ParameterTypeDescription
theme *stringTheme id, e.g. animals/ocean-animals
countstring | numberMaximum number of words
maxLengthstring | numberMaximum word length
minLengthstring | numberMinimum word length
seedstring | numberShuffle deterministically before applying --count

words_match words match

Matches the bundled word bank sample against a pattern where "_" or "?" is any letter, e.g. "c_r_l" matches CORAL. Helpful when stuck on a crossword or word puzzle.

ParameterTypeDescription
pattern *stringPattern with _ or ? wildcards
limitstring | numberMaximum results (default: 50)

words_random words random

Picks a random word from the bundled word banks — the same pool the hangman game uses. Deterministic with --seed.

ParameterTypeDescription
minLengthstring | numberMinimum word length (default: 4)
seedstring | numberSeed for reproducible output
themestring | numberRestrict to one theme

words_stats words stats

Prints the size of the bundled word bank: categories, themes, unique words.

words_themes words themes

Lists the bundled starter themes (30 generic word lists; the full curated collection is at puzzletide.com). Filter by --category or full-text --search. Theme ids look like "animals/ocean-animals".

ParameterTypeDescription
categorystring | numberOnly themes in this category
limitstring | numberMaximum results (default: 50)
searchstring | numberFull-text search over id, title, and description