• Sophienomenal@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    10
    ·
    edit-2
    4 days ago

    For those interested, ignoring the contradictory presentation of the riddle (as the knights themselves would not say the riddle since one always lies and one always tells the truth), the solution is simple. Ask the knights what the other knight would answer when asked what door is correct, and they will both say which path not to go to. Thus you pick the path that neither Knight says!

    Logic:

    Liar: Will say the wrong option, as they're being asked which door the truth telling knight would say (and they will lie about what the truth-teller would say)
    ------------------------------------------
    Truth-teller: Will say the wrong option, as they're being asked which door the liar would say (and they'll tell the truth about that)
    

    NOTE: This can be expanded to a case with n doors by asking the knights to provide all the options that the other knight could say, and each will provide n-1 options, so you’d pick the one option that neither knight says. It is possible the liar may not list all options, but the truth-teller would, so the problem could still be worked out regardless (and you’d know which knight is the liar in that case).