Learning to lose