# Prisoner Hat Riddle

**There are four prisoners.**

**Prisoner hat riddle**.
In this TED-Ed lesson Alex Gendler walks us through the prisoner hat riddle a classic puzzle.
Number 1 sees number 2 and 3s hats.
He tells them that if they win the game he will let them go free.

All four prisoners will be freed if at least one of them correctly guesses the. He then proceeds to bury each prisoner up to his neck in sand as shown. Either to tell the color of his hat or stay silent.

There are four prisoners. All four prisoners will be freed if at least one of them correctly guesses the color of the hat on his head. The riddle remains the same and the question and the step by step explanation is given below.

He eventually comes up with the solution of giving them a puzzle and if they answer correctly they can go free but if they fail they are to be executed. They cant speak to each other and they cant touch each other. Four inmates are cleaning up a littered beach as part of a prisoner work program.

The riddle is also popular with the name Google Prisoners Hat Riddle. If prisoner 1 observes that prisoners 2 and prisoners 3 have the same coloured hats he would assume that he has the opposite colour and solve the riddle. The warden who happens to be overseeing the work decides to play a little game with the prisoners.

2 The 2nd prisoner looks at the 3rd prisoner. 1-A2-B and 3-CThe prisoners know that there are only two hats of each colour. The warden shows them two black hats and two white hats and then puts the hats in a bag to conceal them.