Here is one of my all time favorites.
There is an ancient monarchy with a dying queen. She has no heirs. She wishes to find a wise person to assume the throne after she dies. So she devises a plan. After scouring the country’s universities, boardrooms, clown colleges and internet message boards she comes up with a list of three people that she deems fit to rule. One woman, one man, and one extremely precocious eight-year-old with a broadband connection. She brings them into her throne room and tells them that she has devised a plan to determine who will assume the throne when she dies. What follows is more or less an exact account of what she said.
“Greetings my pretties. I made up a little game for you. I have in my hand a bag. In that bag there are small hats. Five small hats, to be exact. Each hat is one color and one color only, white or black. Three of the hats are black and two are white. I am going to turn out the lights in my chamber and it will be completely dark. I have some dope night vision goggles so I’ll be able to see fine but none of you will be able to see a thing. I am going to line you up in a row facing me so that once the lights are back on, the first person in the line can see only me, the second person in the line can see the person in front of her/him/it and me. The third person in line will be the lucky one, he/she/it will be able to see both people in front of them as well as me.
“Now then. Once you are in line I will bring the bag to you and you will reach in and put one and only one hat on your head. Once you each have a hat on your head I will put you in line just as I described. I will also have the remaining hats incinerated so that nobody will know what was left in the bag (but I will take care to remove my dope night vision goggles before doing so: I am a wise queen after all). I will then turn on the lights in my throne room. None of you will be allowed to move from your position, reach for the hat on your head, or speak to eachother. If you do so you will be executed immediately. The first one of you to correctly tell me what color hat you are wearing will be my heir. If you are wrong you will be executed immediately.”
The queen proceeded to do this just like she said. And everything went according to plan. Everybody lined up with a hat on their head. Nothing happened at first, but after about five minutes the extremely precocious eight-year-old—who was standing at the front of the line—raised it’s hand and correctly told the queen what color hat it was wearing.
What color was the hat and how do you/did it know?
The Black Hat because his head started heating up.
Nice try.
There are no tricks to this one. Just use your logic.
Okay, here's my guess:
The kid's hate is black.
Here's why:
These are three brilliant people. If the kid and person #2's hat were white, person #3 would have immediately shouted out that s/he (#3) was wearing black. However, that didn't happen, so we know that either #1 or #2 was wearing black (and potentially both).
Person #2 is capable of the same logic we just used. Thus, if the boy was wearing *white*, he (#2) would know that he (#2) was wearing black (since they both couldn't be wearing white).
Thus, the boy is wearing black.
I'm not sure if I explained that right, but I feel good about that answer. (Again, it presumes that these three people really are brilliant, but I'll trust them. However, perhaps person #3 is sadistic, and just wants to see somebody get executed. That would throw off everything.

)