130

You are a prisoner in a room with 2 doors and 2 guards. One of the doors will guide you to freedom and behind the other is a hangman–you don't know which is which, but the guards do know.

One of the guards always tells the truth and the other always lies. You don't know which one is the truth-teller or the liar either. However both guards know each other.

You have to choose and open one of these doors, but you can only ask a single question to one of the guards.

What do you ask to find the door leading to freedom?

Rafe
  • 5,756
  • 4
  • 29
  • 51

16 Answers16

119

If I asked what door would lead to freedom, what door would the other guard point to?

If you asked the truth-guard, the truth-guard would tell you that the liar-guard would point to the door that leads to death.

If you asked the liar-guard, the liar-guard would tell you that the truth-guard would point to the door that leads to death.

Therefore, no matter who you ask, the guards tell you which door leads to death, and therefore you can pick the other door.

  • 12
    This assumes that the liar guard will only tell a lie. (As opposed to trying to deceive you.) There is more to lying than words - there is body language. – Mayo May 05 '15 at 18:56
  • 34
    @Mayo It's a logic puzzle, though, not one of human interaction. –  May 05 '15 at 19:53
  • 3
    Yes. I forgot my :-) I've been thinking about questions like this along the line of a prisoner's dilemma and not only as a matter of a logic puzzle. – Mayo May 05 '15 at 20:06
  • 2
    @Mayo That makes sense! No worries :] –  May 05 '15 at 20:13
  • 6
    Note to self - if this answer is confusing, focus only on the latter clause which is simple to understand and the only key to the problem, i.e. What door would the other guard point to? (if you asked him where the treasure is). The reason this works is because the answer reveals the integrity of BOTH guards. – Sridhar Sarnobat Aug 13 '15 at 20:20
  • @Emrakul I have seen this solved in one of my childhood horror shows. – Wasiq Shahrukh Jun 10 '16 at 12:35
  • 1
    What would happen if the guard pointed to the door you came from? – Weckar E. Aug 24 '16 at 12:02
  • @WeckarE. "If I asked which door would lead to freedom, and there was no door behind me, which door would the other guard point to"? – Braden Best May 24 '17 at 02:03
  • @ Sridhar-Sarnobat: This question reveals the identity of both guards. Exactly. Which makes me wonder if the question is not cheating basically. It's two questions, only embedded. The reason why people don't notice is because the two questions are not separated by an 'and', the second one is a subordinate clause. This puzzle could therefore be examined in the linguistic or philosophy stackexchange site as well. – stevie May 15 '18 at 21:13
  • 1
    You assume that each guard knows whether the other is a liar or a truth teller. The question doesn't state that the guards each know that one of the guards always tells the truth and the other always lies (though presumably each guard knows that he does one of these). If the assumption is false for both guards, the truth teller would truthfully answer, "I don't know", and the liar would be at something of a loss to give a sensible answer. – Martin Rattigan Feb 27 '19 at 17:16
  • Of course most answers assume that the guards know what kind of door they're guarding. – Martin Rattigan Feb 27 '19 at 17:28
  • What if the guards don't know which door is which? – jmucchiello Mar 02 '19 at 21:24
  • This is not the correct answer. This answer requires that the person asks two questions. – Karl Morrison Mar 26 '19 at 08:40
  • @Karl Ask it once but pick the guard at random. It works in either case. –  Mar 26 '19 at 08:56
  • Haha sorry man, I totally missed the part that the guard you ask will actually point somewhere, my bad! – Karl Morrison Mar 26 '19 at 09:16
  • This is the closest answer to match the one I came up with when I was given this puzzle. Except, in the version I was tasked with I could only ask a question that could be answered with yes or no. So, basically, I had guards 1 and 2, and doors A and B. Like this answer, the trick is to get the answer of both guards into the equation, so that you know you always get the wrong answer back. So asking, "if I asked the other guard if door B leads to freedom, would he say yes?", the answer will be "no" if the truth is yes, and vice-versa. Same rule applies for any question combination. Just negate. – DanielSmedegaardBuus May 09 '21 at 17:30
  • What is the use of the statement "However both guards know each other"? I do not see it being used in any of the answers – cppcoder Sep 26 '23 at 01:23
54

Choose a guard and ask him,

"If I asked you 'are you standing in front of the freedom door?', would your reply be 'yes'?"

  • If you choose the truthful guard, he will give you an honest answer. Enter his door if he says "yes" and enter the other door otherwise.
  • If you choose the liar, he will lie about what his reply would be. Since that reply is also a lie, the two lies cancel out. Enter his door if he says "yes" and enter the other door otherwise.
manshu
  • 6,304
  • 20
  • 56
Kevin
  • 6,449
  • 1
  • 31
  • 30
  • 10
    I think there was no information about where the guards stand. But that was a brilliant idea :-) – Rafe Sep 03 '14 at 05:21
  • 11
    That's true. But any question that distinguishes between the doors would work as the "inner" question. For example, 'is the door on the left the freedom door?' – Kevin Sep 03 '14 at 11:54
  • Yes, I agree with you. – Rafe Sep 03 '14 at 15:36
  • You can only ask one of the guards right? Based on your answer, you have 50:50 chance to survive. – 4 Leave Cover Oct 23 '14 at 10:52
  • 6
    @TanSiongZhe, How so? Looks like a 100% chance to me. 1. If you ask the honest guard and he says "yes", you pass through his door safely. 2. If you ask the honest guard and he says "no", you pass through the other door safely. 3. If you ask the liar guard and he says "yes", you pass through his door safely. 4. If you ask the liar guard and he says "no", you pass through the other door safely. Where's the danger? – Kevin Oct 23 '14 at 12:03
  • First of all you would not know who is truthful and who's not. – 4 Leave Cover Oct 24 '14 at 01:10
  • 9
    The goal is not to find out which guard is truthful. The goal is to find the correct door. None of the other answers determine the identity of the guards either. – Kevin Oct 24 '14 at 12:04
  • The liar guard is also hard of hearing and mis-hears your question as "I ask you, 'Are you standing..." ;-) – Michael Nov 14 '14 at 15:42
  • 3
    I like @Emrakul's answer slightly more, because in real life, the lying guard will just want you to have fake information, and he won't care about "double negation" from his own answer. He will just tell you something so that you have fake information – nonopolarity May 30 '15 at 19:27
  • 1
    If the guard doesn't know which door he is standing in front of, his answer to "are you standing in front of the freedom door?" , if he tells the truth, would be, "I don't know". His truthful answer to, ""If I asked you 'are you standing in front of the freedom door?', would your reply be 'yes'?", would therefore be, "No", So you could be unlucky. – Martin Rattigan Feb 27 '19 at 17:36
  • For everyone who doesn't understand this answer, the important part is the "would your reply be 'yes'?" part. Your specifically asking if the guard being questioned would answer yes. – Karl Morrison Mar 26 '19 at 09:15
40

Here is a twisted solution.

Go to any guard, point at a door and ask:
Among the propositions 1. "You are a liar", 2. "You will reply negatively" and 3. "This door leads to freedom", is there an odd number of true propositions?

If you get the answer yes:
If the guard is a truthteller, the number of truths is odd, 1. is false, 2. is false, so 3. must be true.
If the guard is a liar, the number of truths is even, 1. is true, 2. is false, so 3. must be true.

If you get a negative answer:
If the guard is a truthteller, the number of truths is even, 1. is false, 2. is true, so 3. must be true.
If the guard is a liar, the number of truths is odd, 1. is true, 2. is true, so 3. must be true.

So regardless of the answer of the guard, the door you pointed at is the door to freedom, you can leave safely.


Note: Before you argue about this solution, please read the following:
Logic explanation in "two doors" answer

Florian F
  • 29,623
  • 4
  • 63
  • 138
  • 6
    What happens if you point to the door to death? – Rob Watts Sep 20 '14 at 18:57
  • 4
    Logic tells that doesn't happen. [smiley] – Florian F Sep 20 '14 at 21:45
  • 3
    Fantastic! This "twisted" solution of yours was truly a nice way to solve problems like this. Somehow removed the limit of questions – Rafe Jan 15 '15 at 19:19
  • 2
    This answer appears to be incorrect. The reasons have been stated in this question – March Ho Jan 19 '15 at 13:31
  • 2
    I know :-). If you point at the right door it works fine. If you point at the wrong door it results in a paradox as wnen one says "I am lying". It always brings a contradiction. That is why only the 1st possibility looks valid. – Florian F Jan 19 '15 at 14:02
  • 1
    If you simplify this a little, it becomes correct. Try this:

    'Among the propositions 1. "You are a liar", "2. This door leads to freedom", is there an odd number of true propositions?'

    There are four cases: (A) Guard tells truth and door is safe: one proposition is true - yes (B) Guard lies and one door is safe: two propositions true + lie - yes (C) Guard tells truth and door is unsafe: 0 propositions true - no (D) Guard lies and door is unsafe: 1 proposition true + lie - no

    – bchurchill Aug 31 '15 at 13:07
  • @FlorianF "This sentence is false." – Braden Best May 24 '17 at 02:07
  • @BradenBest The word "This" is ambiguous. Please be more specific. – Florian F May 26 '17 at 15:41
  • I disagree. The This clearly refers to the sentence encapsulating it. There is no other context that the this could possibly refer to, as the whole is a self-contained quote. So it is safe to assume the This refers to its own sentence. Had I said, "[Blatantly false statement]. This sentence is false.", then there would be ambiguity. – Braden Best May 26 '17 at 20:28
  • 1
    This is not true. And by this I refer to your statement, not mine. – Florian F May 26 '17 at 22:58
  • This solution also relies on the guards being smart enough to understand the propositions. Otherwise they may make a mistake, when attempting to tell the truth or lie. – simo.3792 Sep 27 '17 at 01:23
  • It so happens that trained logicians seldom end up in a job that involves guarding a door. And telling lies is not in the nature of a logician. So whoever told you that the guards are prefect logicians probably is a liar himself. Or he just makes fun of you. – Florian F Nov 29 '17 at 21:21
  • Actually, they're very likely to hire trained logicians for guarding these particular doors, as they can reasonably expect some quite convoluted questions to be asked so only quite good logicians (actually, as good as possibly to be found) are truly suitable for the task. – Egor Hans Sep 15 '18 at 20:47
  • Ah, I love these convoluted ways to exploit the "this sentence is a lie" paradox. – kajacx Apr 15 '19 at 11:37
  • "Would your answer to 'Is the door you are guarding Freedom?' be consistent with (equal to) your answer to this (my) question?"

    $-$ gives the same effect (is equivalent), but is simpler to state.

    – Vepir Nov 24 '19 at 13:22
  • Why not just ask each guard something stupidly obvious? Like “are you a guard?” – moonman239 Aug 17 '22 at 03:37
  • The liar will answer “No, I am not a guard” and the other guard will answer “yes, I am a guard” then you know who to trust. – moonman239 Aug 17 '22 at 03:38
  • @moonman239 true, but what you want to find out is which door leads to freedom. – Florian F Aug 18 '22 at 01:02
37

This is a classic old chestnut of a puzzle, and we've had several responses giving the traditional answer to the puzzle. As a bit of spice, here's a slightly lateral-thinking answer, which lets us figure out not only which door is which, but also which guard is which, all using a single question.

We're going to be using a timing attack. Here's how it works.

Ask one of the guards:

"If I was to ask you what you'd say if I asked you what you'd say if I asked you what you'd say if I asked you what you'd say if I asked you what you'd say... (repeat any sufficiently large number of times, remembering to occasionally stop to draw a fresh lungful of air so that you don't faint) ...if I asked you whether this was the door to freedom, then what would you say your answer would be?"

The truth-telling guard will be able to answer this right away. No matter how many nested self-referential clauses you put into that question, she doesn't need to remember them or count them, and it always remains a trivial question to which she can always instantly give a truthful answer.

It's a much harder problem for the lying guard, who will need to think for a short time as she double-checks her answer, and may even have to ask you to repeat the question, just to make sure she correctly counted the number of recursive lies she's supposed to be telling, in order to give you the correct "always lies" answer. Her answer will necessarily be delayed, compared against the truth-teller's answer, because the question is designed to be much more difficult to determine the answer, for someone who is required to tell falsehoods.

Thus, simply by checking whether the answer is instantaneous or not, you can tell whether the guard is a truth-teller or a liar (respectively), and therefore select a door according to the answer that the guard gave you, and whether that guard is the truth-teller or the liar.

Yout Ried
  • 1,987
  • 12
  • 25
Trevor Powell
  • 5,751
  • 2
  • 21
  • 27
  • That's a pretty good answer! – Xandawesome May 31 '15 at 05:27
  • 1
    It isn't that hard for the liar, he just has to count the the number of nested clauses. If even, he answers the correct door, else he points to the wrong one. – Rohcana Aug 19 '15 at 18:05
  • If the liar knows in advance that this is what you're going to do, sure. It'd be reasonably trivial to insert a confounding clause in the middle or end of the question such that merely counting the number of clauses won't work, if you're concerned about such a time-traveling (or puzzling.SE-reading) guard. :) – Trevor Powell Aug 19 '15 at 23:28
  • 10
    I'm afraid that if I was the truth telling guard, I'd still have to have a bit of a think before I'd answer that :) – Michał T Jan 23 '16 at 23:57
  • 1
    What if the liar guard is either a logical machine or omniscient and answers the question instantaneously? It takes a computer only a fraction of a second to evaluate the answer to !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!false (which is true, by the way). – Braden Best May 24 '17 at 02:18
  • 2
    @BradenBest "What if" is a game for scholars. – Trevor Powell May 26 '17 at 00:16
  • (do note, though, that this sort of timing attack is quite commonly used against logical computers, in the field of cryptography. That's where the idea behind this solution to the puzzle came from originally.) – Trevor Powell May 26 '17 at 00:18
  • I fail to see how logic puzzles are not also "for scholars". – Braden Best May 26 '17 at 07:29
  • @BradenBest ...it's a rather famous movie quote. But never mind. My answer is two years old, and it provides a silly (but functional) answer to this traditional, evergreen puzzle, as originally formulated. Frankly, I've long since moved on from this little bit of whimsy. If you want to propose new puzzle variants, it'd be better to post them as new puzzles rather than embedding them in comments on ancient proposed solutions to even more ancient puzzles. – Trevor Powell May 26 '17 at 11:16
  • 1
    Similar caveat to the one in Florian's answer. Even if the guard can answer immediately, it may possibly not. – Egor Hans Sep 15 '18 at 20:36
22

My answer, assuming I ask one question only...

Is the liar in front of the death door (DD)?

A. (if the Truth guard is asked) If the Truth guy is in front of DD, he answers NO. If not, he answers YES.

B. (if the Liar guard is asked) If the Liar is in front of DD, he answers NO. If not, he answers YES.

Either way, if we get a NO, then we've asked the guard in front of the death door, so we go to the opposite door. If we get a YES, then we've asked the guard not in front of the death door, so we go to the door behind them.

Thank you, I am here all week ;)

ManyPinkHats
  • 7,127
  • 2
  • 34
  • 49
user3035350
  • 329
  • 2
  • 3
11

EDIT: As @Ben mentioned, this answer is not really matching the tag. Sorry.

If the guards are...

stupid polite

you can

ask one to open a door

so you

didn't open a door (yet)

but

you see what's behind the door the guard opened

and

you can choose the right one (freedom, probably).

This doesn't even use the "truth-telling, lying" fact.

This only works if

  • The guards do what you say.

  • You can see freedom / the hangman when the door is open.

palsch
  • 851
  • 8
  • 16
  • 4
    The OP set a tag called logic-puzzle. This is not a logical answer as you are locked up and they are guarding you from escaping. Please respect the question. (Sorry for being a bit harsh :-)). DISCLAIMER - THIS IS A SUBJECTIVE OPINION OF MINE – Ben Jun 14 '16 at 15:36
  • @Ben I'm sorry, I just thing lateral. [tag:lateral-thinking] anywhere. Perhaps this is a problem of mine. – palsch Jun 14 '16 at 15:38
  • fair enough :-) no worries – Ben Jun 14 '16 at 15:39
  • Interesting idea, but how would you ask them? You: "Could you please open door 1?" Guard: Yes. (And stays standing there because while he can open the door, he won't.) – DKATyler Jun 14 '16 at 16:31
  • @user1361991 Maybe something like "Would you please open door 1?" – palsch Jun 14 '16 at 16:43
  • 4
    @palsch Hmmm along that line of thinking: "Would you be a good chap and fetch the hangman for me?" should get the guard off in the right direction ;). – DKATyler Jun 14 '16 at 17:43
  • @user1361991 This seems to circumvent the liar's nature by making his physical response (i.e. open the hangman's door) differ from his verbal one (which door is the hangman?). He should indicate the same door to both queries IMHO. – Trenin Jun 14 '16 at 19:04
5

I'd like to add an explanation for the answer of Florian F:

If we look at it from the other side, the possibilities are the following:

  1. The door is correct and the guard tells the truth: Then 1 is false, 3 is true, 2 depends on how the guide answers the whole (true if no, false if yes), which fits in both cases (011= no, 001 = yes) => the guard can answer in any way and will pick one answer.
  2. The door is correct and the guard lies: Then 1 is true, 3 is true, 2 is same as above, which in both cases is a lie (111=no=>yes, 101=yes=>no) => the guard can answer in any way and will pick one answer.
  3. The door is not correct and the guard tells the truth: Then 1 is false, 3 is false, 2 is same again, but this time it does not fit (010=yes >< 2 true, 000=no >< 2 false) => the guard cannot answer.
  4. The door is not correct and the guard lies: Then 1 is true, 3 is false, 2 is same again, but this time it's the truth (110=no=>yes -- 2 false, 100=yes=>no -- 2 true) => the guard cannot answer.

Thus, the reasoning is: If the guard can answer then you pointed at the freedom door, if it cannot answer you pointed at the death door.

However, this has one big danger, similar to the Halting Problem: You have no idea whether the guard really cannot answer, or if it's merely thinking about the decision yet what answer to pick, which may take quite a time! And additionally, every answer is assuming that if the guard answers, it answers as soon as it can. While for most answers this is not very relevant, for this answer a negation of this assumption would be fatal!

To illustrate this problem, the following example: Imagine you ask a guard the question Florian proposed. You wait, and wait, and wait. After a long time you decide that the guard doesn't answer because it can't. You then go to the door you didn't point at, and right when you just pushed down the handle, you hear the guard answering.

It was at this moment that Florian knew: He fucked up.

Egor Hans
  • 225
  • 2
  • 6
5

I am a newbie to Stack-Exchange and if my answer violates some guidelines , please correct me .

Let us assume , WLOG that the right door leads to freedom . So , the question I would ask is :

If I were to ask you whether the right door leads to freedom , would you answer yes?

The honest person would answer YES

The liar's internal response would be to say NO but being the liar he is , he would
say YES (due to double negation)

I think this would help you ascertain as to which is the truth-teller and which is the liar

manshu
  • 6,304
  • 20
  • 56
pranav
  • 1,015
  • 2
  • 13
  • 21
  • 2
    This answer is identical to (or at best a rehash of) Kevin's answer. – March Ho Dec 30 '14 at 11:34
  • 1
    @MarchHo Well, some people tend to not check whether their answer is already there, in order to avoid spoilers. Chances are both had the same idea independently that way. – Egor Hans Sep 15 '18 at 20:32
  • Would, "If I were to ask you if the wrong door leads to the hangman, would you answer no?", also do? – Martin Rattigan Feb 27 '19 at 23:57
5

You ask:

Would the other guard say your door is the door to freedom?

If either guard is guarding the door to freedom both would answer NO. If either guard is guarding the door to death both would answer YES. NO leads to freedom and YES leads to death.

I don't think there is one question whose answer would indicate which guard is guarding which door and which door leads to freedom.

Yout Ried
  • 1,987
  • 12
  • 25
Jim-EIL
  • 51
  • 1
  • 3
2

As with all such questions you could try:

If the question Q (in this case, "Is this the dodgy door") were to be answered with the same truth or falsehood as you are about to answer this question, would the answer be "yes" (or maybe "pish" if you can remember that this is a native word for "yes" or "no" without exactly recalling which)?

If he answers "yes" (or "pish") then it is the dodgy door irrespective of whether he's a truth teller, a liar, a take your pick, or whether he actually knows the answer (and, where applicable, whether "pish" means yes or no). If he answers no (or "tush") then it isn't.

Martin Rattigan
  • 233
  • 1
  • 9
2

The trick to this question is:

one guard is a NOT gate (the liar - L), and the other is just a straight-forward wire (the truth teller - T). The question is either an on or off pulse, and the answer is also an on or off pulse (which we interpret as pointing to a door).

So:

If we ask TL with an ON pulse (which door is the Freedom door), ON$\to$ON$\to$OFF. And if we ask LT with an ON pulse: ON$\to$OFF$\to$OFF. So they both point to the death door.

JMP
  • 35,612
  • 7
  • 78
  • 151
1

Even though the most common answer has been posted I would like to add an answer that a friend of mine gave me when I asked him this question. I had never heard this answer before and this is why I would like to share it.

If you ask any guard, "is the truth telling guard standing in front of the door that leads to freedom?", if he says no you always go to the opposite door. If he says yes you simply go through that door.

The mechanics are more or less the same in this answer but for some reason it took me a long time to convince myself it worked every time.

Alex Bochel
  • 61
  • 1
  • 7
  • Ask the lieing guard that question, s/he will say no if the truth telling guard is in front of the door to freedom, taking the opposite door means you die. However which door the guard was referring to? – Matt Stevens Feb 10 '18 at 11:22
  • 1
    @MattStevens The answer actually does make sense. What you probably overlooked is that if you ask the liar, you refer to the door he's not standing in front of. That means that it fits: First, let's look at the scenario that you ask the guy in front of the freedom door. If you ask the truth-teller, the door behind him is the freedom door, and he says yes. If you ask the liar, the door behind him is the freedom door, so the door behind the other one (the truth-teller!) is death, which the liar negates to yes. Similar for the guard at the death door, who always says no. – Egor Hans Jun 26 '18 at 13:01
  • This answer is a duplicate of https://puzzling.stackexchange.com/questions/2188/two-doors-with-two-guards-one-lies-one-tells-the-truth/6508#6508. – mathlander Dec 22 '23 at 20:16
0

Update: My answer is wrong.

If anyone gets confused like I did, please see the comments for a reminder.

(original)

All of the answers are incorrect, and the puzzle itself flawed.

To reiterate the (overlooked) requirements:

  • "... you can only ask a single question from one of the guards", and;
  • "One of the guards always tells the truth and the other always lies. You don't know which one is [which]."

These rules create a situation where there is no method for discerning one guards' honesty from the other, and thus which door leads to freedom.

It's best explained as, "take my word for it*.


Edit - For Example, you ...

  • Ask Guard-A : "Do you guard the door to Freedom?" |OR| "Does Guard-B guard the door to freedom?"
  • Guard-A replies: "Yes"

50% - Guard-A is lying, you die. 50% - Guard-A is honest, you live.

Koffy
  • 125
  • 3
  • 3
    You don't have to discern the guards - you have to discern the doors. If you try all possible situations with the top two answers, you'll see you'll always pick the right door. Both ask one question from one guard who may or may not be the truthteller. – EagleV_Attnam Nov 14 '14 at 10:26
  • The answers are misleading because they immediately state "The honest-guard .. blah". How can you possible know which guard is which without asking both. See? Otherwise, just ask the honest guard and be done with the puzzle... – Koffy Nov 14 '14 at 11:52
  • 5
    @Koffy no, they start "If you asked the truth-guard," and go on to say "If you asked the liar-guard," thus demonstrating that you can safely act on the answer no matter which guard you happen to ask. – Kate Gregory Nov 14 '14 at 13:09
  • 2
    I can see my error now, thanks. I was never properly separating the 'defined behavior' from 'perceived behavior'. All in my head, the liar-guard would break behavior to .. achieve confusion. I even drew it on paper! I won't change my answer, but will add a note :) ty – Koffy Nov 14 '14 at 15:16
0

Emrakul provided the only answer that is close to the way I would explain this riddle solution. Others are violating one or more the original premise or just off base in general. Especially Kevin and Rafe which obviously just convinced themselves 50-50 was ok, LOL, which guard is the honest one and which is the liar is obviously not something you know, it says right in the riddle explanation, but your answer depends on it. I'm really scratching my head and wish you two the best.

The answer, same concept as Emrakul, in other words: Go to either guard. Ask that guard, "Which door would the other guard say is the safe route". This answer, regardless of which guard you ask will allow you to choose the door opposite of either guard's answer and always lead you safely. -1 x -1 = 1 MGO

  • 1
    That is not correct. The first answer you call incorrect says "If you choose the truthful one" and "If you choose the lying one," but it doesn't mean you need to know, it's just an explanation of what happens in each case. In both cases, you respond the same to the answer. So that answer also works regardless of which guard you ask. – Loduwijk Oct 08 '19 at 18:05
-1

It's common that you might find some difference in 2 doors.Let assume the colors of door are different,for say red & green. So the prisoner chooses one door with a color red(for say) and asks this question to one of the guards. "Is this blue door the road to my freedom". If he asks this question to the truth speaking guard he will correct the prisoner over the color of the gate and will tell the true answer. Instead if he asks to the false speaking guard he will not rectify his false statement over color of the door and so he will tell his wrong answer.

Difference in color is mere an assumption,some other difference in gates could also be used in the question.

  • 4
    what if the guard doesn't say anything about correctness of your question, and answers like this: "the door that you are pointing will lead you to freedom"? – Rafe Jul 23 '16 at 06:18
-3

The answer to this riddle is to merely pose an single interogative that completes a simple alternating composite of positive and negative interdependent propositions. By stringing the propositions you can determine the door to freedom by posing the question so that the answer successfully or unsuccessfully completes the alternating polarity. Regardless of how you pose the question the polarity must alternate [negative, positive, negative with the answer providing the last swing back to positive] or [positive, negative, positive with the answer providing the last swing back to negative] to be successful. If and when it does not alternate, that will indicate the required action just as definitively as when and if it does successfully alternate. Below, I will pose the question with the corresponding polarity; keep in mind that your question can utilize either door and either guard; to wit: - Would you be telling the truth [positive], if you said that he would be lying [negative], if he said that this door is the door to freedom [positive]? Notice, [positive, negative, positive]. If the guard you directed the question to answers "NO" [negative], you have completed the correct alternating polarity, [positive, negative, positive,negative] and the door to freedom is the door you did not point out.
or you could ask it in the opposite fashion; to wit: - Would you be lying [negative], if you said that he was telling the truth [positive], if he said that this is the door to certain death [negative]? Notice [Negative, positive, negative]. If he answers Yes [positive], you have again completed the alternating polarity correctly and your door to freedom is the one you pointed out. [Negative, Positive, Negative, Positive]. In either case, if the polarity does not correctly alternate, you should proceed as indicated from the context of your interrogative. Simple

VicFore
  • 11
  • 1
  • 4
    Welcome to puzzling.SE. "Everything should be made as simple as possible, but not simpler." - Albert Einstein – ABcDexter Jun 14 '16 at 15:34
  • All these years this has been in the back of my head, and I still can't tell what you were trying to say. I'm assuming it's an overformalization of the concept behind the other answers, but that's purely an educated guess from the context. If someone gave me just your answer, I would be entirely clueless about its meaning. – Egor Hans Jan 03 '24 at 23:14