• ThatGuy46475@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    7 months ago

    Now let’s make it a little harder. You have three guards: one tells the truth, one lies, one answers randomly. The guards understand you, but only answer either “da” or “ja”. One means yes, one means no, but you don’t know which is which. You get to ask each guard one question.

    • excral@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      7 months ago

      It’s still trivial, assuming the three guards guard three doors: just ask each guard: “Would the guard that always lies say this door is safe?” The random guard will give a random answer while the other two give the inverted answer. Even better if don’t ask the random guard first, then you can repeat the question about the other doors to the same guard and only need two questions