← Mysteries

Knights and Knaves Puzzles Explained: Solve Liar Puzzles

On the island of knights and knaves, knights always tell the truth and knaves always lie. Learn the trick for solving liar puzzles, with two worked examples.

Yamara Grand holding a mask in one hand and a candle in the other beside two chess pieces on a table

Here's a puzzle type that makes a single sentence into a whole mystery. Two people talk. One of them might be lying. You have to work out the truth from their words alone.

It's called knights and knaves, and once you know the trick, it's surprisingly quick.

The rules of the island

On this imaginary island, everyone is one of two types:

  • Knights always tell the truth.
  • Knaves always lie.

There are no half-truths and no mood swings. You meet some islanders, they make statements, and you figure out who is a knight and who is a knave. The logician Raymond Smullyan made these puzzles famous in his puzzle books.

The one trick: assume, then test

Solving these puzzles doesn't need a flash of genius. It needs a method:

  1. Pick one person and assume they are a knight (or a knave).
  2. Follow the consequences. If they're a knight, their statement is true. If they're a knave, their statement is false.
  3. Look for a contradiction. If your assumption forces something impossible, it's wrong.
  4. If it's wrong, the opposite is true. Since there are only two types, one assumption must work.

It feels a bit like detective work, because you're testing a suspect's story against the facts.

Example 1: The one-liner

Two islanders, A and B. A says: "We are both knaves." What are they?

Assume A is a knight. Then his statement is true, so both are knaves. But A is a knight, which contradicts the statement. So that's impossible.

So A is a knave. Then his statement is false. It's false that both are knaves. A is a knave, so for the statement to be false, B must not be a knave. That means B is a knight.

Answer: A is a knave, and B is a knight.

Example 2: Two statements

Now A says: "B is a knave." And B says: "A and I are the same type."

Assume A is a knight. Then B is a knave, as A said. B's statement is "we're the same type", but A is a knight and B is a knave, so that statement is false. A knave's statement should be false, so it fits. No contradiction.

Assume A is a knave. Then A's statement is false, so B is not a knave, which means B is a knight. B says "we're the same type", but A is a knave and B is a knight, so that statement is false. A knight can't say something false. Contradiction.

Answer: A is a knight, and B is a knave.

Tricks that save time

  • A statement about yourself is a gift. Someone saying "I am a knave" is impossible, because a knight wouldn't say it and a knave would be telling the truth. A puzzle will never give you that line.
  • Start with the shortest statement. Short claims have fewer branches to check.
  • Write it as a table. Draw columns for "if A is a knight" and "if A is a knave" and fill in the results.
  • Always check both people. A solution isn't complete until every statement fits.

Why detectives like this puzzle

Real investigations deal with people who might not be telling the truth, but the method is the same. When a story and the facts disagree, you don't throw out the whole case. You test one assumption at a time and see what breaks.

That's also the heart of the murder mystery puzzles I love, where one witness lies and you have to find out which statement is false. If you like this kind of thinking, my book It Wasn't Yamara is a big version of it.

Don't ask who is lying. Ask what happens if they are.

Quick answers

What is a knights and knaves puzzle?

It is a logic puzzle set on an island where knights always tell the truth and knaves always lie. You work out who is who from what they say.

How do you solve a knights and knaves puzzle?

Pick one person, assume they are a knight or a knave, follow what that forces, and check for a contradiction. If you find one, the other assumption must be true.

Who made knights and knaves puzzles famous?

The logician and puzzle writer Raymond Smullyan popularized them in books such as What Is the Name of This Book?

Stay in my world

New books first,
and a free surprise now and then.

A few emails a month: new book releases before anyone else, free printables and puzzle files, and behind-the-scenes looks from the StudioMoreFolio sets.

A few emails a month, no spam. Unsubscribe anytime.