日本語
Two Guards, One Question (illustration)
FILE No.51Unsolved

Two Guards, One Question

Difficulty ★☆☆about 4 minLogic PuzzleTruth-tellers and liarsQuestion design
Two doors, two guards. One always tells the truth, the other always lies. One question to find the exit.

Case Record

In a hidden underground room there are two doors. One leads to the exit; the other leads to a dead-end trap. A guard stands in front of each door.

One guard always tells the truth. The other always lies. You do not know which is which. Both guards know which door is the exit.

You may ask one guard a single question, once. The answer will be "yes" or "no".

Your question

What should you ask to be certain of the safe exit?

Case Files

Evidence

Diagram

Guards and doorsItemDetailGuardsOne truthful, one liarDoorsExit and trap (unknown which)QuestionOne guard, onceBoth guards know which door is the exit.
Diagram

Timeline

  1. You enter the room with two doors and two guards.
  2. One question, to one guard, once.

Hints

If you get stuck, open the hints one at a time, in order.

Open hint 1

Think about the case where you ask the truth-teller, and the case where you ask the liar, separately.

Open hint 2

What happens if you ask what the other guard would say?

Open hint 3

Both guards will give you the same answer to this question.

Solve It

Your question

What should you ask to be certain of the safe exit?

Choose the answer closest to the truth.

Share: I'm solving this

The Truth

"If I asked the other guard whether this door is the exit, would he say yes?"

The answer is: "If I asked the other guard whether this door is the exit, would he say yes?"

If you ask the truth-teller, he truthfully tells you what the liar would say (a lie). If you ask the liar, he lies about what the truth-teller would say (the truth), so he also gives you a lie. Either way, you get the opposite of the correct answer.

So if this door really is the exit, you will always hear "no". If it is not, you will always hear "yes". Take the door opposite to the answer you hear.

"Would the other guard say yes?"Guard askedOther guard's true answerYou hearTruth-teller(liar's) "No""No"Liar(truth-teller's) "Yes""No"Asked about the real exit, you always hear "no".
Diagram of the solution

Key Points

  • Build a question that gives the same answer from either guard
  • Two lies cancel each other out
  • Use the answer in reverse

Why people get fooled

Asking "Are you the truth-teller?" tries to identify the guard, but it never tells you anything about the doors.

Similar tricks

  • The question-designer type
  • The double-negation type

If you like this file, try these

Two Taps and a Tank (illustration)Two Taps and a Tank★☆☆about 4 minThirteen People, Same Birth Month (illustration)Thirteen People, Same Birth Month★☆☆about 3 minSocks in the Dark (illustration)Socks in the Dark★☆☆about 3 minAcross the Round Table (illustration)Across the Round Table★☆☆about 3 min

If you view the truth, this case will not count as solved on your own. Open it anyway?

Privacy Policy (Japanese)

The cases on this site are fictional puzzles created for entertainment. Any resemblance to real people, organizations or events is coincidental.

© Unsolved Files