Can You Solve The Prisoner Hat Riddle? The Best Riddle I’ve Ever Heard.

Click

2

Do not scroll down unless you want to see the solution!

.

.

.

.

.

.

.

.

.

.

.

.

.

Solution :

For the sake of explanation let’s label the prisoners in line order A B and C. Thus B can see A (and A’s hat color) and C can see A and B.

The prisoners know that there are only two hats of each color. So if C observes that A and B have hats of the same color, C would deduce that his own hat is the opposite colour. However, if A and B have hats of different colors, then C can say nothing. The key is that prisoner B, after allowing an appropriate interval, and knowing what C would do, can deduce that if C says nothing the hats on A and B must be different. Being able to see A’s hat he can deduce his own hat color. (The fourth prisoner is irrelevant to the puzzle: his only purpose is to wear the fourth hat).

In common with many puzzles of this type, the solution relies on the assumption that all participants are totally rational and are intelligent enough to make the appropriate deductions.