Movie Night Wheel
Four movies, one wheel, every phone in the room watching the same spin land on the same title at the same time.


The actual hard part wasn't drawing a wheel or animating a spin. It was keeping the angle honest across devices that joined at different times. The server always knows where the wheel currently sits and computes each spin's rotation as a delta from that position, not from zero, so a second or third spin lands on the wedge it's supposed to regardless of how the wheel is currently rotated.
The first version got this wrong in a way that only showed up with more than one screen open. Clients never pulled their local angle from the server, so a phone that joined late started at angle zero while the server was computing deltas from wherever the wheel actually was, and different screens would show different movies winning the same spin. The fix made the server's angle the only truth: clients resync it on every connection or reset, and snap to the server's exact final angle the moment their own animation ends, so a late-joiner or a reconnect never drifts out of sync with the room.