Alice stands facing a wall, Bob stands behind Alice, Carol is behind Bob, Dave is behind Carol, and Eve is behind Dave. All five are facing the wall.
The five are blindfolded and three white hats and two black hats are placed on their heads. When the blindfolds are removed each person can see all the hats in front, but not his or her own hat or any of the hats behind.
Dave says, "I do not know what color my hat is." Bob replies, "Well, I know what color mine is." Then Alice says, "I know what color my hat is too."
The five are blindfolded and three white hats and two black hats are placed on their heads. When the blindfolds are removed each person can see all the hats in front, but not his or her own hat or any of the hats behind.
Dave says, "I do not know what color my hat is." Bob replies, "Well, I know what color mine is." Then Alice says, "I know what color my hat is too."