Puzzles solved by casquettes