All games
Logic Grid Easy · 1 of 5
Clue 1 of 0

Loading clue.

Logic Grid · 4×4 · Name and Job Easy · 0 clues
0:00 time0/4 houses0 conflicts

Logic Grid

Logic Grid is a zebra puzzle. Every category has the same number of items, and the clues tell you which items share a house. Pair every item with exactly one item in every other category until one arrangement fits.

Categories and clues

A logic grid puzzle gives you a set of categories, such as names, jobs, pets, house colours, drinks and music. Each category has the same number of items. The items are spread across a row of houses, with one item from each category in every house. Your job is to work out which items belong together.

The clues are the only information you get. A direct clue pairs two items: "Alice is the teacher" or "The teacher owns the cat." A negative clue keeps two items apart: "Alice is not the doctor." An order clue compares houses: "The red house is left of the blue house" or "The cat is next to the tea drinker." Every clue is true in the final arrangement, and the clues together allow exactly one arrangement.

Zebra puzzles are also called Einstein's riddle. The name does not change the method. Read a clue, mark what it proves, and use the marks to rule out the rest.

How to play Logic Grid

The goal. Pair every item with exactly one item in every other category so every clue is true and every house holds one item from each category.

The table

The clue strip shows one clue at a time. Previous and Next move through the list, and All clues opens the full list. The two tab rows choose a category pair. The first row is the category down the side. The second row is the category across the top. The matrix has one cell for every pair of items between those two categories.

A blank cell is undecided. An X means the two items are in different houses. A cobalt dot means they share a house. The status line shows the time, the number of complete houses and the number of conflicts. The buttons below the board are Undo, Redo, Hint, Restart and Rules.

Setup

Pick a size and a difficulty, then press New puzzle. The board starts blank. The size select loads a different pack. The difficulty select loads another level in the same pack. A puzzle from the level is loaded, or the puzzle named by the URL. Every puzzle has one stored solution.

Legal moves

  1. Tap or click a cell once to mark X. Tap it again for a dot. Tap it a third time to clear it.
  2. A dot pairs the two items. The rest of that row and column in the same category pair become X automatically.
  3. A pair can also follow a chain. If Alice is the teacher and the teacher owns the cat, Alice and the cat are in the same house. The matrix shows that dot without another tap.
  4. An X is a note. It records a pair you ruled out. It does not pair or separate anything by itself.
  5. A house is complete when it holds one item from every category. The puzzle is solved when every house is complete and the pairings match every clue.

Controls

Click or tap a cell to cycle X, dot and clear. Use the arrow keys to move the focus, Enter or Space to cycle the focused cell, and Backspace to clear it. Undo and Redo cover every mark and hint. Hint opens a small dialog with one pair from the stored solution and a short reason, then offers to mark it. Restart asks first. New puzzle, size and difficulty load another puzzle. Rules opens this sheet. On a phone held sideways, Clues opens the same list from the recovery dock. Your marks, size, level, puzzle number, hints and time are saved in this browser. The URL also records the size, level and puzzle number.

Watch out

  • Left of means somewhere to the left, not necessarily next door. Next to means one house apart. Read the exact word in the clue.
  • Two items in the same category cannot share a house. The matrix never compares two items from one category because that pair can never be a dot.
  • An X that appears by itself is a consequence of a dot. You cannot change it until you clear the dot that produced it.
  • A full set of houses can still be wrong. If every house is full and the puzzle does not finish, at least one pair is wrong. Undo a step or ask for a hint.
  • The clues never change. Restart keeps the same clues and clears your marks, hints and time.

Win

Every house is full, every item has one partner in every other category, and every clue is true. The win dialog shows your time, hints and clue count.

Strategy

  • Start with direct clues. A clue such as "Alice is the teacher" gives you a dot. A clue such as "Alice is not the doctor" gives you an X. Both reduce the board at once.
  • Count the row. If a row has one blank cell and every other cell is X, that last cell must be a dot. The same works for a column and for an item that needs one partner in the other category.
  • Follow chains. If Alice is the teacher and the teacher owns the cat, Alice owns the cat. Look for a dot that connects two other dots.
  • Use order clues together. "The red house is left of the blue house" and "The blue house is left of the green house" put red before blue before green.
  • Mark what you rule out. An X stops you testing the same pair twice and it makes the last cell in a line obvious.
  • Do not guess. Every puzzle has one stored solution. A guess can look consistent for several marks and then block the clues. If a chain stalls, ask for a hint.

Sizes and difficulty

The 4×4 board has four categories and four items in each one. It has the fewest pairs to track, so start there if the matrix is new. The 5×5 board adds a fifth category and a fifth item. The 6×6 board adds a sixth category, so each house holds six items and the matrix has more pairs to settle.

Easy, Medium and Hard packs each hold five puzzles. Hard packs use fewer clues, so more of the arrangement has to come from chains and order. Every puzzle was generated from a random arrangement, then checked offline to prove that its clues allow exactly one arrangement. The page loads the clues and the stored solution. It does not generate a puzzle or run a solver while you play.

FAQ

What is a zebra puzzle?

A zebra puzzle is a logic puzzle with several categories and a set of clues. The clues pair items, separate items or compare their houses. The classic version is a puzzle about a street of houses.

What does left of mean?

Left of means the first item is somewhere to the left of the second, not necessarily next door. Next to means the two items are one house apart.

Do I have to fill every cell?

No. You only need enough dots to place every item with one partner in each category. X marks help you keep track of what you ruled out, but a complete set of X marks is not required.

Is there one solution?

Yes. Every shipped puzzle was checked offline against its clues, and the check proved that exactly one arrangement fits. The browser reads the stored solution when you ask for a hint.

How does Hint work?

Hint marks one pair from the stored solution and gives a short reason. It first corrects a pair you marked as excluded or paired with the wrong item. It never marks anything until you press the button.

Does the game save my progress?

Yes. Your marks, size, level, puzzle number, hints and time are stored in this browser. The URL also records the size, level and puzzle number, so you can return to the same puzzle.

Can I play on a phone?

Yes. The phone view shows one category pair at a time. The category tabs and clue controls stay outside the scaled matrix, and the matrix cells stay at least 24px on a 320px screen.

Every house is full.

0:00Time
0Hints
0Clues

Hint

Mark a pair

Restart

Restart this puzzle?

Your marks, hints, and time will be cleared. The clues stay.

This puzzle

All clues

Pick a clue to show it in the strip.

    How to play

    Report a bug

    Something wrong? Tell us.

    Sent with this page, the game state saved in your browser, your browser type, screen size and any recent error messages, so we can reproduce it. Nothing else leaves your device.