The blind bartender and the spinning tray
product-puzzle case · difficulty 4/5 · 15 minutes · other
Prompt
Four glasses stand on the corners of a square tray that can spin. Each glass is either upright or upside down, and you do not know which. You are blindfolded. On each turn you may reach for any two glasses, feel whether each is upright or upside down, and turn over either, both or neither. Then the tray is spun, so you lose track of which glass is which. A bell rings when all four glasses face the same way. Can you guarantee the bell, and in how many turns?
Context
A classic interview puzzle. Core idea: Automata theory/State parity. Sequence of specific flips guarantees a win in 5 turns. Talk through your reasoning; the interviewer cares as much about structure as about the answer.
Clarifying questions
- Can you feel the state?
- Yes. You choose whether to reach for two neighbouring glasses or two glasses at opposite corners, you feel their orientation, and then you decide. You cannot tell which exact corners they were after the spin. The goal is for all four to match (all up or all down): if the goal were specifically all upright, nothing can guarantee it, because a spin can always hide the one wrong glass.
Recommendation
**Answer:** Yes. At most 5 turns guarantee that all four glasses face the same way, so the bell rings. Five is also the minimum worst case. Getting them all upright specifically cannot be guaranteed. **Why:** Rotation symmetry reduces 16 layouts to 4 types, each turn moves you from one type to a simpler one, and the longest chain is 5 turns.
Risks
- Trying to find a particular glass after a spin, when only "neighbour" or "opposite" can be controlled
- Assuming all-upright can be forced, when the spin lets the one wrong glass avoid your hand forever
Next steps
- Work out what happens with three glasses on a triangular tray
- Explore the version where you cannot feel the glasses