Explain xkcd: It's 'cause you're dumb.
Revision as of 00:06, 4 January 2013
This comic alludes to a famous Knights and Knaves-type logic puzzle, in which there are two doors and two guards. One guard always lies, and the other always tells the truth. One of the doors leads to freedom, and you can only ask one guard one question. The solution to this riddle involves a very tricky question indeed, and one would in the xkcd-version risk a stabbing from the third guard. If you want to give the original puzzle a try for yourself, don't read the spoiling next paragraph.
Solution: Ask one guard (it doesn't matter which one) which door the other guard would say leads out. The door indicated doesn't lead out.
- Black Hat: And here we have the labrinth guards. One always lies, one always tells the truth, and one stabs people who ask tricky questions.
add a comment! ⋅ add a topic (use sparingly)! ⋅ refresh comments!
Just ask which color is the sky.. -- 184.108.40.206 (talk) (please sign your comments with ~~~~)
- Oh, although the strip doesn't explicitly say so; in those riddles you can normally only ask one question. --St.nerol (talk) 23:00, 27 January 2013 (UTC)
- There's another (more traditional) three-guard variation where one guard always tells the truth, one guard always tells a lie and the third alternates between pure truth and pure lie (and you don't know which flip they're currently flopped upon). But you still only get to ask one question of one guard. Have fun with that one. My personal solution certainly has a degree of convolution, but I've heard other workable answers. 220.127.116.11 02:24, 21 June 2013 (UTC)
- @18.104.22.168, you would know which one lies but you would not know which door leads out. Tharkon (talk) 23:13, 10 October 2013 (UTC)
- Eh, well, even if you had a perfect question to ask in this case, a lot of good would that do you: it'd only reveal the truth behind the setup, that none of the doors lead out. :p -- 22.214.171.124 08:20, 8 November 2013 (UTC)
- Well yes it says that in the title-text. But good pick-up. 126.96.36.199 02:31, 6 February 2014 (UTC)
One question, of one guard. I really like the original form of this riddle. It's a bit of a trick, though. It is crucial that the guards "know" each other's rules, but this is not even implied. And if it was stated in the question, that would probably be a good enough clue to get you to the answer. Of course, once you know the answer it seems trivial, but I wonder what percentage of people actually worked it out for themselves? Another good one is Monty Hall, even though that is pure, straightforward probability. 188.8.131.52 18:11, 17 January 2014 (UTC)
- With two guards, they wouldn't need to know each others role. If they know their own role - which they do - each can infer the role of the other. 184.108.40.206 13:01, 21 April 2016 (UTC)
- I think somebody needs a hug! 220.127.116.11 18:11, 17 January 2014 (UTC)
The whole problem with this entire riddle is that if they are both liars you are screwed! Nothing in the riddle establishes a fact that they aren't liars. Now if there was a known truth teller in the riddle that explains the nature of the guards or the narrator does it, then the above solution works. 18.104.22.168 (talk) (please sign your comments with ~~~~)
As you aren't given a limit to the number of questions, you can just ask each guard if they're the stabby guard. If two say yes, the third one is the truthful guard and you can ask him which way the exit is. If two say no, the third one is the lying guard and you can ask him where the exit isn't. No tricky questions so the stabby guard shouldn't stab you.22.214.171.124 18:14, 14 August 2015 (UTC)
I have a solution, but you need to ask multiple questions:
If the Stab Guard tells the truth:
Ask each guard, firstly, "Are you the Stab Guard?"
Truth Guard will answer "No."
Stab Guard will answer "Yes."
Liar Guard knows the answer is no, but, because he lies, will answer "Yes."
The one who said no is the Truth Guard, so you can ask him which door leads to freedom.
If the Stab Guard lies:
Point to the guard on the left, and ask each guard, "Does that guard lie?"
If that guard is Truth Guard, then Truth Guard will answer "No," while Stab Guard and Liar Guard answer "Yes."
If that guard is a liar, then Truth Guard will answer "Yes," while Stab Guard and Liar Guard answer "No."
Whichever guard gives a unique answer is Truth Guard, so you can ask him which door leads to freedom. NickOfFørvania (talk) 23:37, 3 November 2015 (UTC)
I remember a book where the main character kicked one guard in the face and asked if it hurt. 126.96.36.199 (talk) (please sign your comments with ~~~~)