NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

## All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.

Full
Abbreviated
Hidden
• #### If you like this kind of puzzle(Score:2)

You should definitely pick up a book or two by Raymond Smullyan. He's the absolute king of knights-and-knaves puzzles and variations on them: humans who sometimes lie, vampires who lie when it's daylight but tell the truth otherwise, sane and insane versions of all -- e.g., insane knights always tell the truth, but believe every true proposition to be false -- and many others.

A good place to start would be What is the name of this book? [isbn.nu] or Riddle of Scheherazade [isbn.nu]. I liked the former a lot more. It goes f

• #### SPOILER(Score:1)

1. The first question you ask is:
Which of the other two men always tells the truth?

The person who always lies will point to the random person.

The person who randomly lies will point to either the truth teller or the liar.

The person who always tells the truth will answer "neither" or something indicating that they are the one who always tells the truth.

If you got the truth teller, it is easy - you just ask which is the right road to heaven.

If they pointed, you go to the opposite person they pointed to:
• #### Re:SPOILER(Score:1)

What if you ask the man who randomly lies, and he says "Neither"?
• #### Re:SPOILER(Score:1)

I never really felt comfortable with the answer myself. The solution is obvious, find a question that will always lead you to either the truth teller or the liar. Once there, you may simply turn it into the 2 person variation.

The trouble is finding a question that regardless of whom you ask (since you don't know). I welcome you to try to think of a better worded question but the author of the riddle (many years ago) confirmed that this was the answer.

Cheers,
L~R