This question already has an answer here:

There are many red, orange, yellow, green, blue, indigo and violet hats in the prison. 1 day, 7 pirates were caught and was brought to the prison. They warden said,"I will put a hat on your head tonight( with possible colour repetition), and you will be arranged to sit around a round table. each of you can see other hats of your gang, but not yours. Everyone will guess their colour of their hat, and if someone is correct, everyone will be free, or else everyone will be executed. You have until tonight to discuss your strategy." Is there a way to ensure everyone stays alive?

(I think I tag the wrong tag, so help me to edit it.)


marked as duplicate by athin, Glorfindel, SteveV, boboquack, Arnaud Mortier Sep 14 at 14:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\begingroup$ First Pirate1 talks and tell Pirate2's color. Then Pirate2 tells that color. One person have guessed it correct, and everybody have been saved. This puzzle cannot be this simple :) What am I missing? $\endgroup$ – Koray Sep 14 at 14:02

Browse other questions tagged or ask your own question.