Marcio Oliveira's Profile
Starter
13
points

Questions
0

Answers
1

Marcio Oliveira loves solving puzzles at PuzzleFry.com. I am proud PuzzleFry member and like my time invested in solving brain teasers.
  • The switch #1 is used to COUNT. The #2 is used to PASS.

    The prisoners elect a leader and stablish the following rules and behaviours:

    Only the leader can turn the switch #1 off.

    Only the leader can announce that they all visited the room.

    Leader’s behavior:
    If the switch #1 is on, turn off the switch #1 and count 1 visit more ( # of visits starts from zero).
    If the # of visits is equal to 23 (22 prisoners plus the case were the switch #1 was already on), warns: “We have all visited the switch room”
    If not, flips the switch #2.

    Other’s behavior:
    If the switch #1 is turned off and I never turned the switch #1 on, then turn the switch #1 on.
    If not, flips the switch #2.

     

    • 44503 views
    • 3 answers
    • 0 votes