Back to Brain Tonic
LogicmediumBT-090
#90 Prisoner Hat Problem
Four prisoners are buried in sand up to their necks, facing a wall. Two black hats and two white hats are placed on their heads. Each can see the hats of those in front but not their own. They cannot communicate. Starting from the back, each must guess their hat color. If anyone is wrong, all are executed. They can strategize beforehand.
What is the minimum number of prisoners who can be guaranteed to survive?