What color hat are you wearing?

3 replies [Last post]
spider
Offline
NeoApprentice
Joined: 2009/07/12

Four criminals are caught and are to be punished. The Judge allows them to be freed if they can solve a puzzle. If they do not, they will be hung. They agreed.

The four criminals are lined up on some steps. They are all facing in the same direction. A wall separates the fourth man from the other three.

Man 1 can see men 2 and 3.
Man 2 can see man 3.
Man 3 can see none of the others.
Man 4 can see none of the others.

The criminals are wearing hats. They are told that there are two white hats and two black hats. The men initially don’t know what color is the hat they are wearing. They are told to shout out the color of the hat that they are wearing as soon as they know for certain what color it is.

They are not allowed to turn round or move.
They are not allowed to talk to each other.
They are not allowed to take their hats off.

How do they know what color hat they have on?