Reinforcement learning (RL) lets machines learn via trial and error, enriching industries from robotics to gaming.