Question: A prison has 23 prisoners in 23 different cells. The prisoners have no way to communicate with each other in any way from their cells. There is another room, the rec room, that has two switches on the wall (A and B). The switches have on and off positions but they start in an unknown position.
Prisoners are randomly taken to and from the rec room one at a time. They must change the position of only one of the two switches each time they go to the room. At any point a prisoner can yell out, "Every prisoner has been here!" If the prisoner is correct that all of the prisoners have visited the rec room, then they all go free. If they aren't correct then they are all executed.
Before they start they are given one planning session during which they can discuss a method to win the game. What method can they use to ensure they all go free?
Answer: Here are the rules they can use to ensure they will all go free eventually:
The prisoners will choose one 'leader' and everybody else will be a follower. If you are a follower:
Question: A wise person was once sentenced to death by a king. The king couldn't decide how to execute him so he said to the wise person, you can say anything you want, if it is true, I will hang you, if it is not true I will shoot you. In the end the king released the wise man. What did the wise man say?
Answer: You will definitely shoot me.