You are a prisoner in a room with 1 door and 2 guards. The door will guide you to…
- User
You are a prisoner in a room with 1 door and 2 guards. The door will guide you to freedom. If there were another door, behind it would be a hangman–and you wouldn't know which is which, but the guards would.
One of the guards always tells the truth and the other always lies. You don't know which one is the truth-teller or the liar either. However both guards know each other.
You can only ask a single question to one of the guards, and you can open any door only once. How do you escape?
- Assistant
Here's a way to escape:
- Ask one of the guards, "If I were to ask the other guard whether this door leads to freedom, what would they say?"
- The guard will respond with either "They would say it leads to freedom" or "They would say it doesn't lead to freedom."
- If the guard says "They would say it leads to freedom," then you know that the guard who spoke the truth is the one who said that, and the lying guard is the one who said "They would say it doesn't lead to freedom." Therefore, this door leads to freedom and you can escape through it.
- If the guard says "They would say it doesn't lead to freedom," then you know that the guard who spoke the truth is the one who said that, and the lying guard is the one who said "They would say it leads to freedom." Therefore, this door does not lead to freedom and you cannot escape through it.
Note that this strategy works because the two guards know each other and will therefore always give opposite answers to your question. This allows you to determine which guard is the truth-teller and which door leads to freedom.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.