Priors

Logic and brainteasers · Prisoners and hats · difficulty 4 of 5

Hats in a line

10 prisoners stand in a line, each facing forward, so each sees every hat in front of them but not their own or any behind. Each hat is black or white at random. Starting from the back, each prisoner says one word, 'black' or 'white', which everyone hears; those who name their own hat color go free. They agree a plan beforehand. With the best plan, what is the expected number freed?

Answer with an expected value. First lock in a gut guess with an 80% range, then solve it properly, then watch a simulation settle on the truth.

Play it

More logic and brainteaser puzzles

All logic and brainteaser puzzles · All puzzles · Market making game