PICTURED OUT

Logic puzzle

Two doors, two robots, one question

One robot always tells the truth, the other always lies, and you get one question. Here’s the question that works, with every possible case checked.

Oct 31, 2026 · 2 min read · 3 facts checked

A cartoon astronaut stands between two robots, each in front of a door, with a question mark above the astronaut's head.

This film isn't on YouTube yet. Subscribe to catch it when it goes up.

You’ve got one minute of air left. There are two doors. One leads to the escape pod, and the other opens into empty space.

Two robots guard the doors. One always tells the truth, and the other always lies. You can’t tell which is which, but both robots know which door is safe, and each knows how the other one behaves. You get one question, for one robot.

What do you ask?

Try to solve it before you open the answer.

Show the answer

Ask either robot this: “If I asked the other robot which door is safe, which door would it point to?” Then take the other door.

Why it works

Your question passes through both robots, so the lie ends up in the answer exactly once, whichever robot you ask.

  • If you ask the honest robot, it knows the liar would point to the wrong door, so it truthfully tells you that.
  • If you ask the liar, it knows the honest robot would point to the safe door, so it lies and points to the wrong door too.

Either way, you get the wrong door.

Both robots end up pointing at the same door, which is marked with a red X.
From our film. Both answers land on the same wrong door.

Every possible case

There are only four possible setups, and we checked all of them.11 Our own check of all four setups, shown in the table above. Certain

The safe door isYou askThe other robot would point toSo your robot saysThe door you take
LeftThe honest robotRightRightLeft, which is safe
LeftThe liarLeftRightLeft, which is safe
RightThe honest robotLeftLeftRight, which is safe
RightThe liarRightLeftRight, which is safe

Another question that works

You can also ask a robot about itself: “If I asked you whether the left door is safe, would you say yes?” A yes means the left door is safe, and a no means it isn’t.22 Knights and Knaves, Wikipedia Certain The honest robot simply tells the truth. The liar has to lie about its own lie, and the two lies cancel out.

Where the puzzle comes from

This puzzle is far older than our spaceship. Puzzles about truth-tellers and liars are known as “knights and knaves”, a name Raymond Smullyan coined in his 1978 book What Is the Name of This Book?33 Knights and Knaves, Wikipedia Good Wikipedia also describes a version the philosopher Nelson Goodman published anonymously in the Boston Post in 1931, and says a scene in the 1986 film Labyrinth helped popularize the two-door form.

What we made up, and what the answer depends on

The spaceship, the robots, and the minute of air are fiction, so there’s nothing there to check. The answer depends on two assumptions. Each robot has to know which door is safe, and each has to know how the other one answers. Without the second, the honest robot couldn’t tell you what the liar would say, and the trick falls apart.

What we checked

Every fact in this post, where it came from, and how sure we are. Here's what each level means.

#What we saidWhere it comes fromData fromCheckedHow sure
1 Whichever robot you ask, the question points to the wrong door, so the other door is safe. Our own check of all four setups, shown in the table above. Logic, not data Oct 31, 2026 Certain It holds as long as each robot knows which door is safe and how the other one answers.
2 Asking a robot what it would say about a door gets the correct answer about that door from either robot. Knights and Knaves, Wikipedia, plus our own check of both robots. Logic, not data Oct 31, 2026 Certain We worked through both robots ourselves. It holds as long as each robot knows which door is safe.
3 Raymond Smullyan named knights and knaves in 1978, Nelson Goodman published a version in 1931, and a scene in the 1986 film Labyrinth helped popularize the two-door form. Knights and Knaves, Wikipedia 1931 to 1986 Oct 31, 2026 Good This is Wikipedia’s account, and its section on Labyrinth is marked as needing references. We didn’t check the book, the newspaper, or the film ourselves.

Got a question you'd like explained?

Leave it in the comments on the channel. If you spot a mistake here, tell us there too.

Go to the channel

More posts

Brain science

Why can’t you tickle yourself?

Your brain seems to predict your own touch and turn it down. Here’s the robot experiment that tested that idea, what it measured, and where our short version goes too far.

Oct 31, 2026 · 6 min read · 15 facts checked