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.
When I was a substitute teacher I would give the kids logic puzzles of varying difficulty. I would offer $100 if anyone could provide me with the answer to this one. If they looked it up on Wikipedia and could then explain it to me, I’d give them a king size candy bar.
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
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.
When I was a substitute teacher I would give the kids logic puzzles of varying difficulty. I would offer $100 if anyone could provide me with the answer to this one. If they looked it up on Wikipedia and could then explain it to me, I’d give them a king size candy bar.
I never had to pay out.
https://en.wikipedia.org/wiki/The_Hardest_Logic_Puzzle_Ever
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