Logic Grid Puzzle Generator
Generate a reproducible logic grid puzzle with custom categories, clue wording, uniqueness checks, printable grids, answer key, and constraint map.{{ summaryTitle }}
Review puzzle inputs
{{ cleanTitle }}
{{ shapeLabel }} · {{ difficultyLabel }} · {{ clueVoiceLabel }} · Seed {{ cleanSeed }}
Use the blank grids to mark O for confirmed matches and X for ruled-out pairings. Each item belongs with exactly one item in every other category.
- {{ clue.text }}
{{ pair.title }}
| No. | Type | Category pair | Clue | Copy |
|---|---|---|---|---|
| {{ row.number }} | {{ row.typeLabel }} | {{ row.pair }} | {{ row.text }} |
| {{ header }} | Copy |
|---|---|
| {{ cell.value }} |
| Check | Value | Status | Copy |
|---|---|---|---|
| {{ row.check }} | {{ row.value }} | {{ row.status }} |
A logic grid puzzle turns a small story into a constraint problem. Several categories have the same number of items, and the solver has to discover which items belong together. A clue may confirm a pairing, rule one out, or connect two choices indirectly. The grid matters because it gives every possible pairing a visible place to be marked as known, impossible, or still open.
The appeal is not the story theme by itself. The real work is disciplined elimination. If one detective is matched with a room, that detective cannot be matched with the other rooms, and that room cannot be used by another detective. A single mark can force several other marks, so a good puzzle rewards careful propagation rather than guessing.
Most classic grids use a one-to-one rule. Each item in the first category belongs with exactly one item in every other category, and no item is reused. That rule is what makes cross-outs meaningful. Without it, a clue would only describe one fact. With it, each clue changes the remaining choices in other rows and columns.
A useful classroom or print puzzle also needs a fair clue set. Too many direct pairings can make the puzzle feel like copying an answer key. Too many exclusions can leave students with a tedious search. The strongest drafts mix direct and exclusion clues, keep labels short enough for the grid, and verify that the clues lead to one answer rather than several possible endings.
How to Use This Tool:
Start with a complete category set, then review the generated clues before printing or sharing the answer key.
- Choose a
Starter presetif you want a safe 3-category or 4-category example, or enter your own category lines in theCategories and itemsbox. - Write each category as
Category: item, item, item. Use 3 or 4 categories, and keep the item count the same in every category. - Set
DifficultyandClue wording. Easier drafts use more direct clue support, while harder drafts trim closer to the minimum clue count. - Use
Seedwhen you need the same solution and clue order again.New seedcreates another version from the same categories. - Open
Advancedonly when you want to change theExclusion clue mixor allowCross-category cluesbeyond the first category. - Review
Puzzle Sheet,Clue Ledger,Answer Key,Solver Audit, andConstraint Mapbefore using the draft.
If the form reports that categories do not match, fix the category lines before trusting the puzzle. If the Solver Audit says the solution is not unique, use an easier setting or a different seed.
Interpreting Results:
The main trust check is Unique solution. A puzzle can look polished while still allowing two different answer keys, so treat any Multiple solutions or No solution status as a draft that needs revision.
| Output | What to trust | What to verify |
|---|---|---|
Puzzle Sheet |
Student-facing title, categories, clues, and blank grid pairs. | Short labels, clear story wording, and enough writing room. |
Clue Ledger |
Each clue's type, category pair, text, and relation. | Direct and exclusion clues should both make sense in the chosen voice. |
Answer Key |
The generated one-to-one assignment. | Use only after the solver count is exactly 1. |
Constraint Map |
How clues are distributed across category pairs. | A pair with no clues may still be solved indirectly, but it deserves review. |
A passing solver check proves consistency inside the generated rule set. It does not prove that students will experience the puzzle as easy, hard, or elegant. Read the clue order yourself and solve one copy when the worksheet is meant for assessment or competition.
Technical Details:
A logic grid can be viewed as a small assignment problem. The first category acts as the anchor. Every other category is a permutation of the same item positions, and a valid solution chooses one item from each category for every anchor item.
Direct clues require two items to share the same anchor position. Exclusion clues require two items not to share that position. The solver tests candidate assignments against those clue rules and stops once it can distinguish one solution from more than one.
Formula Core:
The raw search space grows with category count and item count. If n is the number of items in each category and c is the number of categories, the anchored assignment search space is:
For a 4 category x 3 item puzzle, the search space is (3!)^(4-1), or 216 candidate assignments. The displayed Search space in Solver Audit is a scale clue, not a difficulty score.
Rule Core:
| Rule | Meaning | Failure sign |
|---|---|---|
| 3 or 4 categories | The generator keeps the grid small enough for readable classroom worksheets. | Category setup warning before results appear. |
| 3 or 4 items per category | Each category must have the same number of possible values. | Item count mismatch message. |
| Direct clue | Two items must belong to the same anchor item. | Contradiction if another clue excludes the same pairing. |
| Exclusion clue | Two items cannot belong to the same anchor item. | Ambiguity if exclusions never force final matches. |
| Solver count = 1 | Exactly one assignment satisfies all selected clues. | Multiple solutions or No solution. |
Difficulty changes the target clue count. The clue mix setting biases the selected clue pool toward exclusions up to a 60 percent target, and cross-category clues allow clues to connect any two categories instead of always starting from the first category. Those settings change the route through the puzzle without changing the one-to-one rule.
Seeded generation makes comparison fair. The same categories, difficulty, exclusion mix, cross-category setting, and seed recreate the same solution and clue order. Change any of those values and the answer key should be reviewed as a new puzzle.
Worked Examples:
Museum mystery for a short activity
Load Museum mystery - 3 categories x 3 items, keep Difficulty at Medium, and use seed museum-01. The summary should show a 3 categories x 3 items puzzle and the Solver Audit should report Unique solution. That makes the Puzzle Sheet suitable for a short deduction warm-up.
Harder party planner version
Use the 4 categories x 4 items party preset with Hard difficulty. The Clue Ledger will usually be tighter, and the Constraint Map helps spot whether one category pair is carrying most of the clue burden. If the solver status changes to review, create a new seed before handing it to students.
Category mismatch before generation
If Traveler has four items but Snack has only three, the page reports that every category needs the same item count. Fix the source lines first. A grid with uneven categories cannot support the one-to-one answer key the puzzle depends on.
FAQ:
Can a generated puzzle have more than one answer?
Yes. The generator checks the selected clues and flags the draft when the solver finds more than one possible assignment. Use Solver Audit before trusting the answer key.
Why are only 3 or 4 categories allowed?
The generated sheets are meant to stay readable as printable grids. Larger category counts create many pair grids and can crowd the clue sheet.
What does the seed control?
The seed controls the reproducible solution, clue order, and generated answer key for the current categories and settings. Reusing it is useful for answer-key recovery.
What should I do when a line is rejected?
Use the exact Category: item, item, item pattern, remove duplicate category names, and make sure every category has 3 or 4 items.
Glossary:
- Category
- A set of related items, such as detectives, rooms, projects, or arrival times.
- Direct clue
- A clue that confirms two items belong together.
- Exclusion clue
- A clue that rules out a possible pairing.
- Search space
- The number of candidate assignments the solver may need to consider before counting solutions.
- Unique solution
- A clue set with exactly one answer key under the one-to-one category rule.
References:
- Puzzle - Logic Grid Puzzles, INFORMS Transactions on Education, September 2014.