Learning How to Handle Temptation