News for hackers. Stuff that matters.
Re:Prison Switcharoo by michael_h on Sunday February 23, 2014 @01:39PM (#7286927)
I'm a bit sleepy, but I can't get this to work. For 3 prisoners, what if the sequence is (P1 T P1 T P1 T P1 T P2 P2 P2 P2)? Where T is the tally keeper. They've all gone the same number of times (given enough time), but the tally keeper would declare that they had all flipped a switch before P2 had gone in at all. Thus, alligators.

Did I miss something?

Re:Prison Switcharoo by daeken on Sunday February 23, 2014 @01:49PM (#7286984)
Each person will only toggle A to the 'on' state twice.
Re:Prison Switcharoo by michael_h on Sunday February 23, 2014 @08:47PM (#7288669)
ah, yes. It even says it right there in the article. Thanks!
Re:Prison Switcharoo by TobbenTM on Sunday February 23, 2014 @01:47PM (#7286978)
The prisoners will only turn on switch A twice. After that they will leave it, and rather toggle the B switch.