Students learn how apps use algorithms and design features to capture attention and trigger dopamine.