What is the answer to the prisoner hat question?

A guard is going to walk down the line, starting in the back, and ask each prisoner what color hat they have on. They can only answer “blue” or “red.” If they answer incorrectly, or say anything else, they will be shot dead on the spot. If they answer correctly, they will be set free.

What’s the answer to the Google hat riddle?

For this to happen, the first prisoner to speak will say “blue”, if the number of blue hats he sees in front of him is even, or “red” if he sees an odd number. This information, coupled with the responses other prisoners have already given and the hats in front is enough to work out what colour hat is on your head.

What happens if all four prisoners guess the color of their hats?

All four prisoners will be freed, if at least one of them correctly guesses the color of the hat on his head. They can’t speak to each other, and they can’t touch each other. Number 1 sees number 2 and 3’s hats.

How to solve 4 hats and 4 prisoners puzzle?

4 Hats and 4 Prisoners puzzle ! There are four prisoners. All four prisoners will be released, if at least one of them correctly guesses the color of the hat on his head. They can’t speak to each other, and they can’t touch each other. Number 1 sees number 2 and 3’s hats. Number 2 sees number 3’s hat.

Why are four prisoners wearing black and white?

A is in the same situation as B, where he can’t see anyone and can’t determine his own hat color. Since A, B, and D are silent, that leaves C. C knows he is wearing a black hat because if D saw that both B and C were wearing white hats, then he would have answered.

What kind of Hat does the prisoner wear?

Each prisoner is given a hat to wear. The officer tells them that there are in total two blue hats and two red hats. If any of them can guess the color of the hat they are wearing right, he promises to set all four of them free.

You Might Also Like